org.springframework.osgi.context.event
Class OsgiBundleContextFailedEvent
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.OsgiBundleContextFailedEvent
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- BootstrappingDependenciesFailedEvent
public class OsgiBundleContextFailedEvent
- extends OsgiBundleApplicationContextEvent
Event raised when the initialization of an ApplicationContext
failed.
- Author:
- Costin Leau
- See Also:
- Serialized Form
OsgiBundleContextFailedEvent
public OsgiBundleContextFailedEvent(ApplicationContext source,
Bundle bundle,
Throwable cause)
- Constructs a new
OsgiBundleContextFailedEvent
instance.
- Parameters:
source
- the ApplicationContext
that has failed (must not be null
)bundle
- the OSGi bundle associated with the source application contextcause
- optional Throwable
indicating the cause of the failure
getFailureCause
public final Throwable getFailureCause()
- Returns the
Throwable
that caused the application context to fail.
- Returns:
- the cause of the failure.
Copyright © 2006-2011 Spring Framework. All Rights Reserved.