org.apache.felix.eventadmin.bridge.upnp
Class Activator
java.lang.Object
org.apache.felix.eventadmin.bridge.upnp.Activator
- All Implemented Interfaces:
- BundleActivator
public class Activator
- extends Object
- implements BundleActivator
The BundleActivator that will register an UPnPEventListener service with the
framework on start. Subsequently, UPnPEvents will be bridged to available
EventAdmin services (as per spec).
- Author:
- Felix Project Team
Method Summary |
void |
start(BundleContext context)
This registers an UPnPEventListener service with the framework that bridges
UPnPEvents to the EventAdmin. |
void |
stop(BundleContext context)
Stop the bridging of UPnPEvents to the EventAdmin. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Activator
public Activator()
start
public void start(BundleContext context)
throws Exception
- This registers an UPnPEventListener service with the framework that bridges
UPnPEvents to the EventAdmin.
- Specified by:
start
in interface BundleActivator
- Parameters:
context
- The context to use
- Throws:
Exception
- If this method throws an exception, this
bundle is marked as stopped and the Framework will remove this
bundle's listeners, unregister all services registered by this
bundle, and release all services used by this bundle.- See Also:
BundleActivator.start(org.osgi.framework.BundleContext)
stop
public void stop(BundleContext context)
throws Exception
- Stop the bridging of UPnPEvents to the EventAdmin.
- Specified by:
stop
in interface BundleActivator
- Parameters:
context
- The execution context of the bundle being stopped.
- Throws:
Exception
- If this method throws an exception, the
bundle is still marked as stopped, and the Framework will remove
the bundle's listeners, unregister all services registered by the
bundle, and release all services used by the bundle.- See Also:
BundleActivator.stop(org.osgi.framework.BundleContext)
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.