Class CDIServerEventNotifier<T extends AbstractServerEvent>

  • Type Parameters:
    T - the type of the handled ServerEvent.
    All Implemented Interfaces:
    ServerEventNotifier<T>
    Direct Known Subclasses:
    DefaultServerEventNotifier

    public abstract class CDIServerEventNotifier<T extends AbstractServerEvent>
    extends Object
    implements ServerEventNotifier<T>
    A synchronous ServerEvent notifier 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. All synchronous notifiers should extend this class; they have just to little parametrization, the notification itself is performed by this abstract class.
    Author:
    Yohann Chastagnier