eXo Kernel :: Component :: Common Service 2.4.3-CLD

org.exoplatform.services.listener
Class Event<S,D>

java.lang.Object
  extended by 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


Field Summary
protected  D data
           
protected  String eventName
           
protected  S source
           
 
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
 
Method Summary
 D getData()
           
 String getEventName()
           
 S getSource()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

eventName

protected String eventName

source

protected S source

data

protected D data
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 event
source - 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

eXo Kernel :: Component :: Common Service 2.4.3-CLD

Copyright © 2013 eXo Platform SAS. All Rights Reserved.