Class Listener<S,​D>

  • All Implemented Interfaces:
    org.exoplatform.container.component.ComponentPlugin
    Direct Known Subclasses:
    ListenerService.AsynchronousListener

    public abstract class Listener<S,​D>
    extends org.exoplatform.container.component.BaseComponentPlugin
    Created by The eXo Platform SAS
    This class is registered with the Listener service and is invoked when an event with the same name is broadcasted. You can have many listeners with the same name to listen to an event.
    Author:
    Nhu Dinh Thuan
    eXo level API
    Platform
    • Field Summary

      • Fields inherited from class org.exoplatform.container.component.BaseComponentPlugin

        desc, name
    • Constructor Summary

      Constructors 
      Constructor Description
      Listener()  
    • Constructor Detail

      • Listener

        public Listener()
    • Method Detail

      • onEvent

        public abstract void onEvent​(Event<S,​D> event)
                              throws Exception
        This method should be invoked when an event with the same name is broadcasted
        Parameters:
        event - the event instance
        Throws:
        Exception