org.protege.osgi.jdbc.JdbcBundleActivator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ontop-protege Show documentation
Show all versions of ontop-protege Show documentation
Ontop OBDA plugin for protégé
package org.protege.osgi.jdbc;
import com.google.common.collect.ImmutableList;
import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;
import org.protege.osgi.jdbc.prefs.Activator;
import java.util.List;
/**
* @author xiao
*/
public class JdbcBundleActivator implements BundleActivator {
private List activators;
@Override
public void start(BundleContext context) throws Exception {
activators = ImmutableList.of(
new org.protege.osgi.jdbc.impl.Activator(),
new Activator());
for (BundleActivator activator : activators) {
activator.start(context);
}
}
@Override
public void stop(BundleContext context) throws Exception {
for (BundleActivator activator : activators) {
activator.stop(context);
}
activators = null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy