org.glassfish.paas.orchestrator.service.spi
Class ServiceChangeEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.glassfish.paas.orchestrator.service.spi.ServiceChangeEvent
All Implemented Interfaces:
Serializable

public class ServiceChangeEvent
extends EventObject

This is an event class for all service events.

Author:
bhavanishankar@java.net
See Also:
Serialized Form

Nested Class Summary
static class ServiceChangeEvent.Type
           
 
Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ServiceChangeEvent(ServiceChangeEvent.Type type, Object source, Service oldValue, Service newValue)
           
 
Method Summary
 Service getNewValue()
          Service after it went through the change.
 Service getOldValue()
          Service before it went through the change.
 Object getSource()
          Gets the source of the event.
 ServiceChangeEvent.Type getType()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServiceChangeEvent

public ServiceChangeEvent(ServiceChangeEvent.Type type,
                          Object source,
                          Service oldValue,
                          Service newValue)
Method Detail

toString

public String toString()
Overrides:
toString in class EventObject

getSource

public Object getSource()
Gets the source of the event.

It must be the ServicePlugin object that is raising the event.

Overrides:
getSource in class EventObject
Returns:
source of the event i.e., plugin object.

getOldValue

public Service getOldValue()
Service before it went through the change.

Returns:
service before it went through the change.

getNewValue

public Service getNewValue()
Service after it went through the change.

Returns:
service after it went through the change.

getType

public ServiceChangeEvent.Type getType()


Copyright © 2012. All Rights Reserved.