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:
- BootstrappingDependencyEvent, OsgiBundleContextFailedEvent, OsgiBundleContextRefreshedEvent
public abstract class OsgiBundleApplicationContextEvent
- extends ApplicationContextEvent
Base class for events raised for an ApplicationContext
created
inside an OSGi environment. Normally, events of this type are raised by the
OSGi extender to notify 3rd parties, external to the context, about changes
in the life cycle of the application context.
Note:While the context source is likely to be an implementation
of ConfigurableOsgiBundleApplicationContext
, this is not mandatory
(it's entirely possible to have a non-OSGi aware ApplicationContext
implementation).
- Author:
- Costin Leau
- See Also:
- Serialized Form
Method Summary |
Bundle |
getBundle()
Returns the OSGi Bundle associated with the application context
that triggers the event. |
OsgiBundleApplicationContextEvent
public OsgiBundleApplicationContextEvent(ApplicationContext source,
Bundle bundle)
- Constructs a new
OsgiApplicationContextEvent
instance.
- Parameters:
source
- the ConfigurableOsgiBundleApplicationContext
that the event is raised for (must not be null
)
getBundle
public Bundle getBundle()
- Returns the OSGi
Bundle
associated with the application context
that triggers the event.
- Returns:
- associated OSGi bundle
Copyright © 2006-2009 Spring Framework. All Rights Reserved.