Class CDIServerEventListener<T extends AbstractServerEvent>

  • All Implemented Interfaces:
    ServerEventListener<T>
    Direct Known Subclasses:
    DefaultServerEventTaskListener

    public abstract class CDIServerEventListener<T extends AbstractServerEvent>
    extends Object
    implements ServerEventListener<T>
    A synchronous ServerEvent 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 Detail

      • CDIServerEventListener

        public CDIServerEventListener()
    • Method Detail

      • onEvent

        public void onEvent​(@Observes
                            T event)