eXo Kernel :: Component :: Common Service 2.4.0-CR2

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

java.lang.Object
  extended by org.exoplatform.container.component.BaseComponentPlugin
      extended by org.exoplatform.services.listener.Listener<S,D>
All Implemented Interfaces:
ComponentPlugin
Direct Known Subclasses:
ListenerService.AsynchronousListener

public abstract class Listener<S,D>
extends BaseComponentPlugin

Created by The eXo Platform SAS Author : Nhu Dinh Thuan nhudinhthuan@exoplatform.com Apr 6, 2007 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.


Field Summary
 
Fields inherited from class org.exoplatform.container.component.BaseComponentPlugin
desc, name
 
Constructor Summary
Listener()
           
 
Method Summary
abstract  void onEvent(Event<S,D> event)
          This method should be invoked when an event with the same name is broadcasted
 
Methods inherited from class org.exoplatform.container.component.BaseComponentPlugin
getDescription, getName, setDescription, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

Throws:
Exception

eXo Kernel :: Component :: Common Service 2.4.0-CR2

Copyright © 2012 eXo Platform SAS. All Rights Reserved.