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
Event object.- Author:
- : @author : Nhu Dinh Thuan.
- eXo level API
- Platform
-
-
Constructor Detail
-
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
-
-
Method Detail
-
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()
- Returns:
- The object on which the Event initially occurred.
-
getData
public D getData()
- Returns:
- The data object that the source object is working on
-
-