Class Activator

  • All Implemented Interfaces:
    java.util.EventListener, org.osgi.framework.BundleActivator, org.osgi.framework.BundleListener, org.osgi.framework.SynchronousBundleListener

    public class Activator
    extends java.lang.Object
    implements org.osgi.framework.BundleActivator, org.osgi.framework.SynchronousBundleListener
    Each opennms-bundle which uses vaadin wants to listen to Session-Events (such as sessionInitialized and sessionDestroyed), In addition we need a OnmsServiceManager service. This bundle registers a EventRegistry and a OnmsServiceManager to the OSGI-Container at bundle activation when the property "OnmsAutoExportServices" is set in the MANIFEST.MF file.
    • Constructor Summary

      Constructors 
      Constructor Description
      Activator()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void bundleChanged​(org.osgi.framework.BundleEvent event)  
      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
    • 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
      • 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
      • bundleChanged

        public void bundleChanged​(org.osgi.framework.BundleEvent event)
        Specified by:
        bundleChanged in interface org.osgi.framework.BundleListener