org.apache.karaf.shell.osgi
Class BlueprintListener

java.lang.Object
  extended by org.apache.karaf.shell.osgi.BlueprintListener
All Implemented Interfaces:
java.util.EventListener, BundleStateListener, BundleStateListener.Factory, org.osgi.framework.BundleListener, org.osgi.service.blueprint.container.BlueprintListener

public class BlueprintListener
extends java.lang.Object
implements org.osgi.service.blueprint.container.BlueprintListener, org.osgi.framework.BundleListener, BundleStateListener, BundleStateListener.Factory

TODO: use event admin to receive WAIT topics notifications from blueprint extender


Nested Class Summary
static class BlueprintListener.BlueprintState
           
 
Nested classes/interfaces inherited from interface org.apache.karaf.shell.osgi.BundleStateListener
BundleStateListener.Factory
 
Constructor Summary
BlueprintListener()
           
 
Method Summary
 void blueprintEvent(org.osgi.service.blueprint.container.BlueprintEvent blueprintEvent)
           
 void bundleChanged(org.osgi.framework.BundleEvent event)
           
 void destroy()
           
 BlueprintListener.BlueprintState getBlueprintState(org.osgi.framework.Bundle bundle)
           
 BundleStateListener getListener()
           
 java.lang.String getName()
           
 java.lang.String getState(org.osgi.framework.Bundle bundle)
           
 void init()
           
 void setBundleContext(org.osgi.framework.BundleContext bundleContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlueprintListener

public BlueprintListener()
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface BundleStateListener

getState

public java.lang.String getState(org.osgi.framework.Bundle bundle)
Specified by:
getState in interface BundleStateListener

getListener

public BundleStateListener getListener()
Specified by:
getListener in interface BundleStateListener.Factory

getBlueprintState

public BlueprintListener.BlueprintState getBlueprintState(org.osgi.framework.Bundle bundle)

blueprintEvent

public void blueprintEvent(org.osgi.service.blueprint.container.BlueprintEvent blueprintEvent)
Specified by:
blueprintEvent in interface org.osgi.service.blueprint.container.BlueprintListener

bundleChanged

public void bundleChanged(org.osgi.framework.BundleEvent event)
Specified by:
bundleChanged in interface org.osgi.framework.BundleListener

setBundleContext

public void setBundleContext(org.osgi.framework.BundleContext bundleContext)

init

public void init()
          throws Exception
Throws:
Exception

destroy

public void destroy()
             throws Exception
Throws:
Exception


Copyright © 2007-2011 Apache Software Foundation. All Rights Reserved.