Package org.opennms.osgi.internal
Class Activator
- java.lang.Object
-
- org.opennms.osgi.internal.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.SynchronousBundleListenerEach opennms-bundle which uses vaadin wants to listen to Session-Events (such as sessionInitialized and sessionDestroyed), In addition we need aOnmsServiceManagerservice. This bundle registers aEventRegistryand aOnmsServiceManagerto 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 voidbundleChanged(org.osgi.framework.BundleEvent event)voidstart(org.osgi.framework.BundleContext context)voidstop(org.osgi.framework.BundleContext context)
-
-
-
Method Detail
-
start
public void start(org.osgi.framework.BundleContext context) throws java.lang.Exception- Specified by:
startin interfaceorg.osgi.framework.BundleActivator- Throws:
java.lang.Exception
-
stop
public void stop(org.osgi.framework.BundleContext context) throws java.lang.Exception- Specified by:
stopin interfaceorg.osgi.framework.BundleActivator- Throws:
java.lang.Exception
-
bundleChanged
public void bundleChanged(org.osgi.framework.BundleEvent event)
- Specified by:
bundleChangedin interfaceorg.osgi.framework.BundleListener
-
-