org.jboss.soa.esb.listeners.lifecycle
Class ManagedLifecycleThreadStateEvent
java.lang.Object
java.util.EventObject
org.jboss.soa.esb.listeners.lifecycle.ManagedLifecycleThreadStateEvent
- All Implemented Interfaces:
- java.io.Serializable
public class ManagedLifecycleThreadStateEvent
- extends java.util.EventObject
- See Also:
- Serialized Form
Fields inherited from class java.util.EventObject |
source |
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 |
ManagedLifecycleThreadStateEvent
public ManagedLifecycleThreadStateEvent(AbstractThreadedManagedLifecycle instance,
ManagedLifecycleThreadState origState,
ManagedLifecycleThreadState newState)
- Construct the managed lifecycle state event.
- Parameters:
instance
- The managed instanceorigState
- The original state, prior to transitionnewState
- The new state after transition
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.