Class Activator

  • All Implemented Interfaces:
    org.osgi.framework.BundleActivator

    public class Activator
    extends Object
    implements org.osgi.framework.BundleActivator
    • Constructor Detail

      • Activator

        public Activator()
    • Method Detail

      • start

        public void start​(org.osgi.framework.BundleContext context)
                   throws Exception
        Specified by:
        start in interface org.osgi.framework.BundleActivator
        Throws:
        Exception
      • newProvisioningAgent

        @Deprecated
        public static org.eclipse.equinox.p2.core.IProvisioningAgent newProvisioningAgent()
                                                                                   throws org.eclipse.equinox.p2.core.ProvisionException
        Deprecated.
        This method potentially creates multiple agent instances with the default location. This leads to concurrent file system access with undefined outcome.
        Throws:
        org.eclipse.equinox.p2.core.ProvisionException
      • createProvisioningAgent

        public static org.eclipse.equinox.p2.core.IProvisioningAgent createProvisioningAgent​(URI targetLocation)
                                                                                      throws org.eclipse.equinox.p2.core.ProvisionException
        Throws:
        org.eclipse.equinox.p2.core.ProvisionException
      • stop

        public void stop​(org.osgi.framework.BundleContext context)
                  throws Exception
        Specified by:
        stop in interface org.osgi.framework.BundleActivator
        Throws:
        Exception
      • getContext

        public static org.osgi.framework.BundleContext getContext()