Class AnnotationEventListenerResolver

    • Constructor Detail

      • AnnotationEventListenerResolver

        public AnnotationEventListenerResolver()
    • Method Detail

      • getEventListeners

        public List<EventListener> getEventListeners​(Object instance)
        Returns a new collection of EventListener instances, each instance corresponding to an annotated method discovered on the specified instance argument.
        Specified by:
        getEventListeners in interface EventListenerResolver
        Parameters:
        instance - the instance to inspect for annotated event handler methods.
        Returns:
        a new collection of EventListener instances, each instance corresponding to an annotated method discovered on the specified instance argument.
      • getAnnotationClass

        public Class<? extends Annotation> getAnnotationClass()
        Returns the type of annotation that indicates a method that should be represented as an EventListener, defaults to Subscribe.
        Returns:
        the type of annotation that indicates a method that should be represented as an EventListener, defaults to Subscribe.
      • setAnnotationClass

        public void setAnnotationClass​(Class<? extends Annotation> annotationClass)
        Sets the type of annotation that indicates a method that should be represented as an EventListener. The default value is Subscribe.
        Parameters:
        annotationClass - the type of annotation that indicates a method that should be represented as an EventListener. The default value is Subscribe.