use of org.cytoscape.io.datasource.internal.bookmarks.BookmarkDataSourceBuilder in project cytoscape-impl by cytoscape.
the class CyActivator method start.
@Override
public void start(BundleContext bc) {
final CyServiceRegistrar serviceRegistrar = getService(bc, CyServiceRegistrar.class);
DataSourceManagerImpl dataSourceManager = new DataSourceManagerImpl();
registerService(bc, dataSourceManager, DataSourceManager.class, new Properties());
registerServiceListener(bc, dataSourceManager::addDataSource, dataSourceManager::removeDataSource, DataSource.class);
BookmarkDataSourceBuilder bkBuilder = new BookmarkDataSourceBuilder(serviceRegistrar);
final Set<DataSource> bkDataSources = bkBuilder.getDataSources();
for (final DataSource ds : bkDataSources) registerService(bc, ds, DataSource.class, new Properties());
}
Aggregations