Annotation Type ListenerFor

    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      java.lang.Class<? extends SystemEvent> systemEventClass
      The kind of system event for which this class will be installed as a listener.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.Class sourceClass
      The kind of object that emits events of the type given by the value of the systemEventClass() attribute.
    • Element Detail

      • systemEventClass

        java.lang.Class<? extends SystemEvent> systemEventClass

        The kind of system event for which this class will be installed as a listener. The implementation only supports exact matches on the Class and must not honor subclass relationships. It is valid to have EL Expressions in the value of this attribute, as long as the expression resolves to an instance of the expected type.

        Returns:
        the event class
      • sourceClass

        java.lang.Class sourceClass

        The kind of object that emits events of the type given by the value of the systemEventClass() attribute. It is valid to have EL Expressions in the value of this attribute, as long as the expression resolves to an instance of the expected type.

        Returns:
        the source class
        Default:
        java.lang.Void.class