|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.felix.webconsole.plugins.upnp.internal.Activator
public class Activator
Activator is the main starting class.
Constructor Summary | |
---|---|
Activator()
|
Method Summary | |
---|---|
Object |
addingService(ServiceReference reference)
A service is being added to the ServiceTracker . |
void |
modifiedService(ServiceReference reference,
Object service)
A service tracked by the ServiceTracker has been modified. |
void |
removedService(ServiceReference reference,
Object service)
A service tracked by the ServiceTracker has been removed. |
void |
start(BundleContext context)
Called when this bundle is started so the Framework can perform the bundle-specific activities necessary to start this bundle. |
void |
stop(BundleContext context)
Called when this bundle is stopped so the Framework can perform the bundle-specific activities necessary to stop the bundle. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Activator()
Method Detail |
---|
public final void start(BundleContext context) throws Exception
BundleActivator
This method must complete and return to its caller in a timely manner.
start
in interface BundleActivator
context
- The execution context of the bundle being started.
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.BundleActivator.start(org.osgi.framework.BundleContext)
public final void stop(BundleContext context) throws Exception
BundleActivator
BundleActivator.start
method started. There should be no active threads that were started by
this bundle when this bundle returns. A stopped bundle must not call any
Framework objects.
This method must complete and return to its caller in a timely manner.
stop
in interface BundleActivator
context
- The execution context of the bundle being stopped.
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.BundleActivator.stop(org.osgi.framework.BundleContext)
public final void modifiedService(ServiceReference reference, Object service)
ServiceTrackerCustomizer
ServiceTracker
has been modified.
This method is called when a service being tracked by the
ServiceTracker
has had it properties modified.
modifiedService
in interface ServiceTrackerCustomizer
reference
- The reference to the service that has been modified.service
- The service object for the specified referenced service.ServiceTrackerCustomizer.modifiedService(org.osgi.framework.ServiceReference,
java.lang.Object)
public final Object addingService(ServiceReference reference)
ServiceTrackerCustomizer
ServiceTracker
.
This method is called before a service which matched the search
parameters of the ServiceTracker
is added to the
ServiceTracker
. This method should return the service object
to be tracked for the specified ServiceReference
. The
returned service object is stored in the ServiceTracker
and
is available from the getService
and
getServices
methods.
addingService
in interface ServiceTrackerCustomizer
reference
- The reference to the service being added to the
ServiceTracker
.
null
if the specified referenced service
should not be tracked.ServiceTrackerCustomizer.addingService(org.osgi.framework.ServiceReference)
public final void removedService(ServiceReference reference, Object service)
ServiceTrackerCustomizer
ServiceTracker
has been removed.
This method is called after a service is no longer being tracked by the
ServiceTracker
.
removedService
in interface ServiceTrackerCustomizer
reference
- The reference to the service that has been removed.service
- The service object for the specified referenced service.ServiceTrackerCustomizer.removedService(org.osgi.framework.ServiceReference,
java.lang.Object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |