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
  • Field Details

    • eventName

      protected String eventName
    • source

      protected S source
    • data

      protected D data
  • Constructor Details

    • 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 Details

    • 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