org.springframework.osgi.context.event
Class OsgiBundleApplicationContextEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
org.springframework.context.event.ApplicationContextEvent
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
OsgiBundleApplicationContextEvent
public OsgiBundleApplicationContextEvent(ConfigurableOsgiBundleApplicationContext source)
- Constructs a new
OsgiApplicationContextEvent
instance.
- Parameters:
source
- the ConfigurableOsgiBundleApplicationContext
that the event is raised for (must not be null
)
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.