All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.protege.osgi.jdbc.JdbcBundleActivator Maven / Gradle / Ivy

There is a newer version: 5.2.1.1
Show newest version
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