org.springframework.osgi.context.event
Class OsgiBundleApplicationContextEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.springframework.context.ApplicationEvent
          extended by org.springframework.context.event.ApplicationContextEvent
              extended by org.springframework.osgi.context.event.OsgiBundleApplicationContextEvent
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
OsgiBundleContextFailedEvent, OsgiBundleContextRefreshedEvent

public abstract class OsgiBundleApplicationContextEvent
extends ApplicationContextEvent

Base class for events raised for an OSGi ApplicationContext. Events of this type are raised by the OSGi extender to notify 3rd parties about changes in the lifecycle of an OSGi application context.

Note:One big difference from traditional ApplicationContextEvent is that it is the extender that sends the notification and not the OSGi application context. This allows third parties to be informed of the life-cycle of an application context without forcing bean initialization inside the source context.

Author:
Costin Leau
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
OsgiBundleApplicationContextEvent(ConfigurableOsgiBundleApplicationContext source)
          Constructs a new OsgiApplicationContextEvent instance.
 
Method Summary
 ConfigurableOsgiBundleApplicationContext getOsgiBundleApplicationContext()
          Returns the ConfigurableOsgiBundleApplicationContext that the event was raised for.
 
Methods inherited from class org.springframework.context.event.ApplicationContextEvent
getApplicationContext
 
Methods inherited from class org.springframework.context.ApplicationEvent
getTimestamp
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OsgiBundleApplicationContextEvent

public OsgiBundleApplicationContextEvent(ConfigurableOsgiBundleApplicationContext source)
Constructs a new OsgiApplicationContextEvent instance.

Parameters:
source - the ConfigurableOsgiBundleApplicationContext that the event is raised for (must not be null)
Method Detail

getOsgiBundleApplicationContext

public final ConfigurableOsgiBundleApplicationContext getOsgiBundleApplicationContext()
Returns the ConfigurableOsgiBundleApplicationContext that the event was raised for.

Returns:
the source of the event as a ConfigurableOsgiBundleApplicationContext instance.


Copyright © 2006-2008 Spring Framework. All Rights Reserved.