org.jboss.soa.esb.listeners.lifecycle
Class ManagedLifecycleStateEvent
java.lang.Object
java.util.EventObject
org.jboss.soa.esb.listeners.lifecycle.ManagedLifecycleStateEvent
- All Implemented Interfaces:
- java.io.Serializable
public class ManagedLifecycleStateEvent
- 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 |
ManagedLifecycleStateEvent
public ManagedLifecycleStateEvent(ManagedLifecycle instance,
ManagedLifecycleState origState,
ManagedLifecycleState 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 ManagedLifecycleState getOriginalState()
- Get the original state, prior to transition.
- Returns:
- The original state.
getNewState
public ManagedLifecycleState 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.