Annotation Type ListenersFor


  • @Retention(RUNTIME)
    @Target(TYPE)
    @Inherited
    public @interface ListenersFor

    Container annotation to specify multiple ListenerFor annotations on a single class. Example:

     
    
        @ListenersFor({
            @ListenerFor(systemEventClass=PostAddToViewEvent.class),
            @ListenerFor(systemEventClass=BeforeRenderEvent.class,
                         sourceClass=CustomOutput.class)
        })
    
     
     

    The action described in ListenerFor must be taken for each @ListenerFor present in the container annotation.

    Since:
    2.0
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      ListenerFor[] value