Class Activator

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

    public class Activator
    extends java.lang.Object
    implements org.osgi.framework.BundleActivator
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.osgi.framework.BundleContext context  
      private static Activator instance  
      static java.lang.String PLUGIN_ID  
    • Constructor Summary

      Constructors 
      Constructor Description
      Activator()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static org.eclipse.equinox.p2.core.IProvisioningAgent createProvisioningAgent​(java.net.URI targetLocation)  
      static org.osgi.framework.BundleContext getContext()  
      static org.eclipse.equinox.p2.core.IProvisioningAgent newProvisioningAgent()
      Deprecated.
      This method potentially creates multiple agent instances with the default location.
      void start​(org.osgi.framework.BundleContext context)  
      void stop​(org.osgi.framework.BundleContext context)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • instance

        private static Activator instance
      • context

        private org.osgi.framework.BundleContext context
    • Constructor Detail

      • Activator

        public Activator()
    • Method Detail

      • start

        public void start​(org.osgi.framework.BundleContext context)
                   throws java.lang.Exception
        Specified by:
        start in interface org.osgi.framework.BundleActivator
        Throws:
        java.lang.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​(java.net.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 java.lang.Exception
        Specified by:
        stop in interface org.osgi.framework.BundleActivator
        Throws:
        java.lang.Exception
      • getContext

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