Class ExampleActivator

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

    public final class ExampleActivator
    extends java.lang.Object
    implements org.osgi.framework.BundleActivator
    Extension of the default OSGi bundle activator
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void start​(org.osgi.framework.BundleContext bc)
      Called whenever the OSGi framework starts our bundle
      void stop​(org.osgi.framework.BundleContext bc)
      Called whenever the OSGi framework stops our bundle
      • Methods inherited from class java.lang.Object

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

      • ExampleActivator

        public ExampleActivator()
    • Method Detail

      • start

        public void start​(org.osgi.framework.BundleContext bc)
                   throws java.lang.Exception
        Called whenever the OSGi framework starts our bundle
        Specified by:
        start in interface org.osgi.framework.BundleActivator
        Throws:
        java.lang.Exception
      • stop

        public void stop​(org.osgi.framework.BundleContext bc)
                  throws java.lang.Exception
        Called whenever the OSGi framework stops our bundle
        Specified by:
        stop in interface org.osgi.framework.BundleActivator
        Throws:
        java.lang.Exception