org.jboss.soa.esb.listeners.lifecycle
Class ManagedLifecycleThreadStateEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.jboss.soa.esb.listeners.lifecycle.ManagedLifecycleThreadStateEvent
All Implemented Interfaces:
java.io.Serializable

public class ManagedLifecycleThreadStateEvent
extends java.util.EventObject

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ManagedLifecycleThreadStateEvent(AbstractThreadedManagedLifecycle instance, ManagedLifecycleThreadState origState, ManagedLifecycleThreadState newState)
          Construct the managed lifecycle state event.
 
Method Summary
 ManagedLifecycle getManagedInstance()
          Get the managed lifecycle instance.
 ManagedLifecycleThreadState getNewState()
          Get the new state after transition.
 ManagedLifecycleThreadState getOriginalState()
          Get the original state, prior to transition.
 java.lang.String toString()
          Return a String representation of this event.
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ManagedLifecycleThreadStateEvent

public ManagedLifecycleThreadStateEvent(AbstractThreadedManagedLifecycle instance,
                                        ManagedLifecycleThreadState origState,
                                        ManagedLifecycleThreadState newState)
Construct the managed lifecycle state event.

Parameters:
instance - The managed instance
origState - The original state, prior to transition
newState - The new state after transition
Method Detail

getManagedInstance

public ManagedLifecycle getManagedInstance()
Get the managed lifecycle instance.

Returns:
The managed lifecycle instance.

getOriginalState

public ManagedLifecycleThreadState getOriginalState()
Get the original state, prior to transition.

Returns:
The original state.

getNewState

public ManagedLifecycleThreadState getNewState()
Get the new state after transition.

Returns:
The new state.

toString

public java.lang.String toString()
Return a String representation of this event.

Overrides:
toString in class java.util.EventObject
Returns:
The string representation of this event.