Class Activator

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

    public class Activator
    extends Object
    implements org.osgi.framework.BundleActivator
    Activator implements a simple bundle that registers a LogServiceFactory for the creation of LogService implementations.
    Author:
    John Conlon, Matt Bishop
    • Method Detail

      • start

        public void start​(org.osgi.framework.BundleContext bundleContext)
                   throws Exception
        Implements BundleActivator.start() to register a LogServiceFactory.
        Specified by:
        start in interface org.osgi.framework.BundleActivator
        Parameters:
        bundleContext - the framework context for the bundle
        Throws:
        Exception
      • stop

        public void stop​(org.osgi.framework.BundleContext bundleContext)
                  throws Exception
        Implements BundleActivator.stop().
        Specified by:
        stop in interface org.osgi.framework.BundleActivator
        Parameters:
        bundleContext - the framework context for the bundle
        Throws:
        Exception