Package org.osgi.framework

Examples of org.osgi.framework.BundleActivator.stop()


    @Override
    public void destroy(BundleContext context, DependencyManager manager) throws Exception {
        for (int i = 0; i < m_activators.length; i++) {
            BundleActivator a = m_activators[i];
            a.stop(context);
        }
    }
}
View Full Code Here


        // ACE-276 same logic as init()
        for (int i = 0; i < m_activators.length; i++) {
            BundleActivator a = m_activators[i];
            String packageName = a.getClass().getPackage().getName();
            if (!"disabled".equals(System.getProperty(packageName))) {
                a.stop(context);
            }
            else if (!m_quiet) {
                System.out.println("Not stopping activator " + packageName + ".");
            }
        }
View Full Code Here

        {
            SecurityUtils.doPrivilegedExceptionAction(new PrivilegedExceptionAction<Void>()
            {
                public Void run() throws Exception
                {
                    bundleActivator.stop(bundleController.getBundleContext());
                    return null;
                }
            },
                                                      framework.getAcc());
            bundleController.setBundleActivator(null);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.