|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.felix.examples.eventlistener.Activator
public class Activator
This class implements a simple bundle that utilizes the OSGi framework's event mechanism to listen for service events. Upon receiving a service event, it prints out the event's details.
Constructor Summary | |
---|---|
Activator()
|
Method Summary | |
---|---|
void |
serviceChanged(ServiceEvent event)
Implements ServiceListener.serviceChanged(). |
void |
start(BundleContext context)
Implements BundleActivator.start(). |
void |
stop(BundleContext context)
Implements BundleActivator.stop(). |
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 void start(BundleContext context)
start
in interface BundleActivator
context
- the framework context for the bundle.public void stop(BundleContext context)
stop
in interface BundleActivator
context
- the framework context for the bundle.public void serviceChanged(ServiceEvent event)
serviceChanged
in interface ServiceListener
event
- the fired service event.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |