org.exoplatform.services.listener
Class Event<S,D>
java.lang.Object
org.exoplatform.services.listener.Event<S,D>
public class Event<S,D>
- extends Object
Created by The eXo Platform SAS Author : Nhu Dinh Thuan
nhudinhthuan@exoplatform.com Apr 6, 2007
|
Constructor Summary |
Event(String name,
S source,
D data)
Construct an Event object that contain the event name , the object that
broadcast the event and the data object that the source object is working
on |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
eventName
protected String eventName
source
protected S source
data
protected D data
Event
public Event(String name,
S source,
D data)
- Construct an Event object that contain the event name , the object that
broadcast the event and the data object that the source object is working
on
- Parameters:
name - The name of the eventsource - The object on which the Event initially occurred.data - the object that the source object is working on
getEventName
public String getEventName()
- Returns:
- The name of the event. Any Listener want to be invoked on the event
has to have the same name
getSource
public S getSource()
getData
public D getData()
- Returns:
- The data object that the source object is working on
Copyright © 2012 eXo Platform SAS. All Rights Reserved.