org.springframework.osgi.context.event
Class OsgiBundleContextFailedEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.springframework.context.ApplicationEvent
          extended by org.springframework.context.event.ApplicationContextEvent
              extended by org.springframework.osgi.context.event.OsgiBundleApplicationContextEvent
                  extended by org.springframework.osgi.context.event.OsgiBundleContextFailedEvent
All Implemented Interfaces:
Serializable

public class OsgiBundleContextFailedEvent
extends OsgiBundleApplicationContextEvent

Event raised when an ConfigurableOsgiBundleApplicationContext failed.

Author:
Costin Leau
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
OsgiBundleContextFailedEvent(ConfigurableOsgiBundleApplicationContext source, Throwable cause)
          Constructs a new OsgiBundleContextFailedEvent instance.
 
Method Summary
 Throwable getFailureCause()
          Returns the Throwable that caused the application context to fail.
 
Methods inherited from class org.springframework.osgi.context.event.OsgiBundleApplicationContextEvent
getOsgiBundleApplicationContext
 
Methods inherited from class org.springframework.context.event.ApplicationContextEvent
getApplicationContext
 
Methods inherited from class org.springframework.context.ApplicationEvent
getTimestamp
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OsgiBundleContextFailedEvent

public OsgiBundleContextFailedEvent(ConfigurableOsgiBundleApplicationContext source,
                                    Throwable cause)
Constructs a new OsgiBundleContextFailedEvent instance.

Parameters:
source - the ConfigurableOsgiBundleApplicationContext that has failed (must not be null)
cause - optional Throwable indicating the cause of the failure
Method Detail

getFailureCause

public final Throwable getFailureCause()
Returns the Throwable that caused the application context to fail.

Returns:
the cause of the failure.


Copyright © 2006-2008 Spring Framework. All Rights Reserved.