Class CDIServerEventListener<T extends AbstractServerEvent>
- java.lang.Object
-
- org.silverpeas.core.notification.sse.CDIServerEventListener<T>
-
- All Implemented Interfaces:
ServerEventListener<T>
- Direct Known Subclasses:
DefaultServerEventTaskListener
public abstract class CDIServerEventListener<T extends AbstractServerEvent> extends Object implements ServerEventListener<T>
A synchronousServerEvent
listener using the notification bus of CDI. This bus is based on the Observer pattern but by using the annotations in place of code lines to setup listeners and so on.Synchronous events are carried within a specific CDI event and are collected by this abstract class. All concrete listeners have just to extend this abstract class and to do some parametrization.
- Author:
- Yohann Chastagnier
-
-
Constructor Summary
Constructors Constructor Description CDIServerEventListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onEvent(T event)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.silverpeas.core.notification.sse.ServerEventListener
on
-
-
-
-
Method Detail
-
onEvent
public void onEvent(@Observes T event)
-
-