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

io.hawt.osgi.jmx.Activator Maven / Gradle / Ivy

There is a newer version: 2.17.7
Show newest version
package io.hawt.osgi.jmx;

import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;

public class Activator implements BundleActivator {

    private OSGiTools osgiTools;
    private ConfigAdmin configAdmin;
    private RBACDecorator rbacDecorator;

    @Override
    public void start(BundleContext context) throws Exception {
        osgiTools = new OSGiTools(context);
        osgiTools.init();

        configAdmin = new ConfigAdmin(context);
        configAdmin.init();

        rbacDecorator = new RBACDecorator(context);
        rbacDecorator.init();
    }

    @Override
    public void stop(BundleContext context) throws Exception {
        rbacDecorator.destroy();
        configAdmin.destroy();
        osgiTools.destroy();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy