com.sun.jaw.impl.adaptor.generic
Class AdaptorStateChangeEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--com.sun.jaw.impl.adaptor.generic.AdaptorStateChangeEvent

public class AdaptorStateChangeEvent
extends java.util.EventObject
implements java.io.Serializable

An adaptor state change event is an event emitted by an adaptor server when the state of the adaptor has changed.

See Also:
Serialized Form

Fields inherited from class java.util.EventObject
source
 
Constructor Summary
AdaptorStateChangeEvent(AdaptorServer source, int oldState, int newState)
          Creates a new state change event.
 
Method Summary
 int getNewState()
          Gets the state of the adaptor after the state change (new state).
 int getOldState()
          Gets the state of the adaptor prior to the state change (old state).
 
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

AdaptorStateChangeEvent

public AdaptorStateChangeEvent(AdaptorServer source,
                               int oldState,
                               int newState)
Creates a new state change event.
Parameters:
source - The adaptor which has emitted the event.
oldState - The old state.
newState - The new state.
Method Detail

getOldState

public int getOldState()
Gets the state of the adaptor prior to the state change (old state).
Returns:
The old state of the adaptor.

getNewState

public int getNewState()
Gets the state of the adaptor after the state change (new state).
Returns:
The new state of the adaptor.