org.apache.karaf.shell.osgi
Class SpringStateListenerFactory.SpringApplicationListener

java.lang.Object
  extended by org.apache.karaf.shell.osgi.SpringStateListenerFactory.SpringApplicationListener
All Implemented Interfaces:
java.util.EventListener, BundleStateListener, SpringStateListenerFactory.Destroyable, org.osgi.framework.BundleListener, org.springframework.osgi.context.event.OsgiBundleApplicationContextListener
Enclosing class:
SpringStateListenerFactory

public static class SpringStateListenerFactory.SpringApplicationListener
extends java.lang.Object
implements org.springframework.osgi.context.event.OsgiBundleApplicationContextListener, org.osgi.framework.BundleListener, SpringStateListenerFactory.Destroyable, BundleStateListener


Nested Class Summary
static class SpringStateListenerFactory.SpringApplicationListener.SpringState
           
 
Nested classes/interfaces inherited from interface org.apache.karaf.shell.osgi.BundleStateListener
BundleStateListener.Factory
 
Constructor Summary
SpringStateListenerFactory.SpringApplicationListener(org.osgi.framework.BundleContext bundleContext)
           
 
Method Summary
 void bundleChanged(org.osgi.framework.BundleEvent event)
           
 void destroy()
           
 java.lang.String getName()
           
 SpringStateListenerFactory.SpringApplicationListener.SpringState getSpringState(org.osgi.framework.Bundle bundle)
           
 java.lang.String getState(org.osgi.framework.Bundle bundle)
           
 void onOsgiApplicationEvent(org.springframework.osgi.context.event.OsgiBundleApplicationContextEvent event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpringStateListenerFactory.SpringApplicationListener

public SpringStateListenerFactory.SpringApplicationListener(org.osgi.framework.BundleContext bundleContext)
Method Detail

destroy

public void destroy()
             throws Exception
Specified by:
destroy in interface SpringStateListenerFactory.Destroyable
Throws:
Exception

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

getSpringState

public SpringStateListenerFactory.SpringApplicationListener.SpringState getSpringState(org.osgi.framework.Bundle bundle)

onOsgiApplicationEvent

public void onOsgiApplicationEvent(org.springframework.osgi.context.event.OsgiBundleApplicationContextEvent event)
Specified by:
onOsgiApplicationEvent in interface org.springframework.osgi.context.event.OsgiBundleApplicationContextListener

bundleChanged

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


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