net.dpml.component
Class StatusEvent

java.lang.Object
  extended by java.util.EventObject
      extended by net.dpml.component.StatusEvent
All Implemented Interfaces:
Serializable

public class StatusEvent
extends EventObject

Event triggered as a result of change to the value of a context entry.

Version:
1.0.4
Author:
Digital Product Meta Library
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
StatusEvent(Provider source, Status oldStatus, Status newStatus)
          Construct a new StatusEvent.
 
Method Summary
 Status getNewStatus()
          Return the status value.
 Status getOldStatus()
          Return the prior status value.
 Provider getProvider()
          Return the component model that initiating the event.
 
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

StatusEvent

public StatusEvent(Provider source,
                   Status oldStatus,
                   Status newStatus)
Construct a new StatusEvent.

Parameters:
source - the source provider
oldStatus - the initial provider status
newStatus - the new provider status
Method Detail

getOldStatus

public Status getOldStatus()
Return the prior status value.

Returns:
the provider status prior to the status change

getNewStatus

public Status getNewStatus()
Return the status value.

Returns:
the provider status

getProvider

public Provider getProvider()
Return the component model that initiating the event.

Returns:
the source model