Class Activator

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

    public class Activator
    extends java.lang.Object
    implements org.osgi.framework.BundleActivator
    The activator class controls the plug-in life cycle.
    • Field Summary

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

      Constructors 
      Constructor Description
      Activator()
      The constructor.
    • Field Detail

      • context

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

      • Activator

        public Activator()
        The constructor.
    • Method Detail

      • getContext

        static org.osgi.framework.BundleContext getContext()
        Getter for the context of this plug-in.
        Returns:
        The context of this plug-in.
      • start

        public void start​(org.osgi.framework.BundleContext bundleContext)
                   throws java.lang.Exception
        Specified by:
        start in interface org.osgi.framework.BundleActivator
        Throws:
        java.lang.Exception
      • stop

        public void stop​(org.osgi.framework.BundleContext bundleContext)
                  throws java.lang.Exception
        Specified by:
        stop in interface org.osgi.framework.BundleActivator
        Throws:
        java.lang.Exception