org.springframework.osgi.context.event
Class OsgiBundleContextClosedEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
org.springframework.context.event.ApplicationContextEvent
org.springframework.osgi.context.event.OsgiBundleApplicationContextEvent
org.springframework.osgi.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
OsgiBundleContextClosedEvent
public OsgiBundleContextClosedEvent(ApplicationContext source,
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(ApplicationContext source,
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-2009 Spring Framework. All Rights Reserved.