org.knopflerfish.framework
Class Listeners

java.lang.Object
  extended by org.knopflerfish.framework.Listeners
All Implemented Interfaces:
java.util.EventListener, BundleListener, FrameworkListener, ServiceListener

public class Listeners
extends java.lang.Object
implements BundleListener, FrameworkListener, ServiceListener

Here we handle all listeners that bundles have registered.


Method Summary
 void bundleChanged(BundleEvent evt)
          Receive notification that a bundle has had a change occur in its lifecycle.
 void frameworkEvent(FrameworkEvent evt)
          Receive notification of a general framework event.
 void serviceChanged(ServiceEvent evt)
          Receive notification that a service has had a change occur in its lifecycle.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

bundleChanged

public void bundleChanged(BundleEvent evt)
Receive notification that a bundle has had a change occur in its lifecycle.

Specified by:
bundleChanged in interface BundleListener
Parameters:
evt - The BundleEvent.
See Also:
BundleListener.bundleChanged(org.osgi.framework.BundleEvent)

frameworkEvent

public void frameworkEvent(FrameworkEvent evt)
Receive notification of a general framework event.

Specified by:
frameworkEvent in interface FrameworkListener
Parameters:
evt - The FrameworkEvent object.
See Also:
FrameworkListener.frameworkEvent(org.osgi.framework.FrameworkEvent)

serviceChanged

public void serviceChanged(ServiceEvent evt)
Receive notification that a service has had a change occur in its lifecycle.

Specified by:
serviceChanged in interface ServiceListener
Parameters:
evt - The ServiceEvent object.
See Also:
ServiceListener.serviceChanged(org.osgi.framework.ServiceEvent)