Annotation Type Default

  • @Retention(RUNTIME)
    public @interface Default
    This annotation should be used to mark the processEvent method when declaring a subclass of EventListener. Doing so tells EventEmitter that the listener is a 'default' listener for that event. It is imperative that we mark the listeners that should be considered default with this annotation so that the concept of 'preventDefault' on the event lifecycle will be observed.
    See Also: