use of org.datatransferproject.transfer.deezer.playlists.DeezerPlaylistExporter in project data-transfer-project by google.
the class DeezerTransferExtension method initialize.
@Override
public void initialize(ExtensionContext context) {
if (initialized) {
Monitor monitor = context.getMonitor();
monitor.severe(() -> "DeezerTransferExtension already initialized");
return;
}
Monitor monitor = context.getMonitor();
HttpTransport httpTransport = context.getService(HttpTransport.class);
TransferServiceConfig transferServiceConfig = context.getService(TransferServiceConfig.class);
exporter = new DeezerPlaylistExporter(monitor, httpTransport, transferServiceConfig);
importer = new DeezerPlaylistImporter(monitor, httpTransport, transferServiceConfig);
initialized = true;
}
Aggregations