public abstract class OsgiBundleApplicationContextEvent
extends org.springframework.context.event.ApplicationContextEvent
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).source
Constructor and Description |
---|
OsgiBundleApplicationContextEvent(org.springframework.context.ApplicationContext source,
org.osgi.framework.Bundle bundle)
Constructs a new
OsgiApplicationContextEvent instance. |
Modifier and Type | Method and Description |
---|---|
org.osgi.framework.Bundle |
getBundle()
Returns the OSGi
Bundle associated with the application context
that triggers the event. |
getApplicationContext
getSource, toString
public OsgiBundleApplicationContextEvent(org.springframework.context.ApplicationContext source, org.osgi.framework.Bundle bundle)
OsgiApplicationContextEvent
instance.source
- the ConfigurableOsgiBundleApplicationContext
that the event is raised for (must not be null
)Copyright © 2006–2015. All rights reserved.