org.eclipse.gemini.blueprint.context.event
Class OsgiBundleContextClosedEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
org.springframework.context.event.ApplicationContextEvent
org.eclipse.gemini.blueprint.context.event.OsgiBundleApplicationContextEvent
org.eclipse.gemini.blueprint.context.event.OsgiBundleContextClosedEvent
- All Implemented Interfaces:
- Serializable
public class OsgiBundleContextClosedEvent
- extends OsgiBundleApplicationContextEvent
Event raised when an ApplicationContext#close() method executes
inside an OSGi bundle.
- Author:
- Andy Piper
- See Also:
- Serialized Form
|
Constructor Summary |
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,
Throwable cause)
Constructs a new OsgiBundleContextClosedEvent instance. |
| Methods inherited from class org.springframework.context.event.ApplicationContextEvent |
getApplicationContext |
| Methods inherited from class org.springframework.context.ApplicationEvent |
getTimestamp |
OsgiBundleContextClosedEvent
public OsgiBundleContextClosedEvent(org.springframework.context.ApplicationContext source,
org.osgi.framework.Bundle bundle,
Throwable cause)
- Constructs a new
OsgiBundleContextClosedEvent instance.
- Parameters:
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 failure
OsgiBundleContextClosedEvent
public OsgiBundleContextClosedEvent(org.springframework.context.ApplicationContext source,
org.osgi.framework.Bundle bundle)
- Constructs a new
OsgiBundleContextClosedEvent instance.
- Parameters:
source - event sourcebundle - associated OSGi bundle
getFailureCause
public final Throwable getFailureCause()
- Returns the
Throwable that caused the application context
closure to fail.
- Returns:
- the cause of the failure.
Copyright © 2006-2012. All Rights Reserved.