public class OsgiBundleContextClosedEvent extends OsgiBundleApplicationContextEvent
| Modifier and Type | Field and Description |
|---|---|
private java.lang.Throwable |
cause |
| Constructor and Description |
|---|
OsgiBundleContextClosedEvent(org.springframework.context.ApplicationContext source,
org.osgi.framework.Bundle bundle)
Constructs a new
OsgiBundleContextClosedEvent instance. |
OsgiBundleContextClosedEvent(org.springframework.context.ApplicationContext source,
org.osgi.framework.Bundle bundle,
java.lang.Throwable cause)
Constructs a new
OsgiBundleContextClosedEvent instance. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Throwable |
getFailureCause()
Returns the
Throwable that caused the application context
closure to fail. |
getBundlepublic OsgiBundleContextClosedEvent(org.springframework.context.ApplicationContext source,
org.osgi.framework.Bundle bundle,
java.lang.Throwable cause)
OsgiBundleContextClosedEvent instance.source - the ApplicationContext that has been closed (must
not be null)bundle - the OSGi bundle associated with the source application
contextcause - optional Throwable indicating the cause of
the failurepublic OsgiBundleContextClosedEvent(org.springframework.context.ApplicationContext source,
org.osgi.framework.Bundle bundle)
OsgiBundleContextClosedEvent instance.source - event sourcebundle - associated OSGi bundle