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

org.exoplatform.services.listener
Class ListenerService.AsynchronousListener<S,D>

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

protected class ListenerService.AsynchronousListener<S,D>
extends Listener<S,D>

This AsynchronousListener is a wrapper for original listener, that executes wrapped listeners onEvent() in separate thread.


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

Constructor Detail

ListenerService.AsynchronousListener

public ListenerService.AsynchronousListener(Listener<S,D> listener)
Method Detail

getName

public String getName()
Specified by:
getName in interface ComponentPlugin
Overrides:
getName in class BaseComponentPlugin

setName

public void setName(String s)
Specified by:
setName in interface ComponentPlugin
Overrides:
setName in class BaseComponentPlugin

getDescription

public String getDescription()
Specified by:
getDescription in interface ComponentPlugin
Overrides:
getDescription in class BaseComponentPlugin

setDescription

public void setDescription(String s)
Specified by:
setDescription in interface ComponentPlugin
Overrides:
setDescription in class BaseComponentPlugin

onEvent

public void onEvent(Event<S,D> event)
             throws Exception
Description copied from class: Listener
This method should be invoked when an event with the same name is broadcasted

Specified by:
onEvent in class Listener<S,D>
Parameters:
event - the event instance
Throws:
Exception

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

Copyright © 2013 eXo Platform SAS. All Rights Reserved.