|
|||||||||
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(org.osgi.framework.ServiceEvent event)
Implements ServiceListener.serviceChanged(). |
void |
start(org.osgi.framework.BundleContext context)
Implements BundleActivator.start(). |
void |
stop(org.osgi.framework.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(org.osgi.framework.BundleContext context)
start
in interface org.osgi.framework.BundleActivator
context
- the framework context for the bundle.public void stop(org.osgi.framework.BundleContext context)
stop
in interface org.osgi.framework.BundleActivator
context
- the framework context for the bundle.public void serviceChanged(org.osgi.framework.ServiceEvent event)
serviceChanged
in interface org.osgi.framework.ServiceListener
event
- the fired service event.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |