Jive API (4.5.7.0) Core Javadocs

com.jivesoftware.spi
Class ServiceEvent<T extends java.lang.Enum<?>,O>

java.lang.Object
  extended by com.jivesoftware.spi.ServiceEvent<T,O>

public class ServiceEvent<T extends java.lang.Enum<?>,O>
extends java.lang.Object

Base event class.


Constructor Summary
ServiceEvent(T eventType, O modifiedObject, java.util.Map<?,?> properties)
           
 
Method Summary
 T getEventType()
          Return the enum that denotes the event type.
 O getModifiedObject()
          Retrieve the object that was modified.
 java.util.Map<?,?> getProperties()
          Retrieve properties associated with the event
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServiceEvent

public ServiceEvent(T eventType,
                    O modifiedObject,
                    java.util.Map<?,?> properties)
Parameters:
eventType - enum that denotes the type of this event
modifiedObject - object modified by the event
properties - event properties
Method Detail

getEventType

public T getEventType()
Return the enum that denotes the event type.


getProperties

public java.util.Map<?,?> getProperties()
Retrieve properties associated with the event

Returns:
properties properties associated with the event.

getModifiedObject

public O getModifiedObject()
Retrieve the object that was modified. Can be null.

Returns:
object object modified by the event. Can be null

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Jive Product Page

Copyright © 1999-2007 Jive Software.