QScript  2.1.2
Expression and algorithm evaluator
 All Classes Namespaces Functions Variables Pages
Protected Member Functions | List of all members
org.qscript.eventsonfire.AbstractAnnotatedEventHandlerStrategy< ANNOTATION_TYPE extends Annotation > Class Referenceabstract

Inherits org.qscript.eventsonfire.AbstractEventHandlerStrategy.

Protected Member Functions

abstract Class< ANNOTATION_TYPE > getAnnotationType ()
 
abstract Class<?>[] getAllowedProducerTypes (ANNOTATION_TYPE annotation, Method method)
 
abstract Class<?>[] getAllowedEventTypes (ANNOTATION_TYPE annotation, Method method)
 
abstract String[] getAnyTags (ANNOTATION_TYPE annotation, Method method)
 
abstract String[] getEachTags (ANNOTATION_TYPE annotation, Method method)
 
EventHandlerInfo createEventHandlerInfo (Method method)
 
abstract EventHandlerInfo createEventHandlerInfo (ANNOTATION_TYPE annotation, Method method, Class<?>[] producerTypesByAnnotation, Class<?>[] eventTypesByAnnotation, String[] anyTagsByAnnotation, String[] eachTagsByAnnotation)
 

Additional Inherited Members

- Public Member Functions inherited from org.qscript.eventsonfire.AbstractEventHandlerStrategy
void scan (Collection< EventHandlerInfo > infos, Class<?> type)
 

Detailed Description

Abstract implementation of an EventHandlerStrategy, that uses simple annotations like the EventHandler, PooledEventHandler or SwingEventHandler annotations.

Author
Manfred HANTSCHEL
Parameters
<ANNOTATION_TYPE>the type of the annotation

Member Function Documentation

EventHandlerInfo org.qscript.eventsonfire.AbstractAnnotatedEventHandlerStrategy< ANNOTATION_TYPE extends Annotation >.createEventHandlerInfo ( Method  method)
protectedvirtual

Creates an EventHandlerInfo if the method is capable of handling events.

Parameters
methodthe method
Returns
the EventHandlerInfo, or null if method does not handle events

Implements org.qscript.eventsonfire.AbstractEventHandlerStrategy.

abstract EventHandlerInfo org.qscript.eventsonfire.AbstractAnnotatedEventHandlerStrategy< ANNOTATION_TYPE extends Annotation >.createEventHandlerInfo ( ANNOTATION_TYPE  annotation,
Method  method,
Class<?>[]  producerTypesByAnnotation,
Class<?>[]  eventTypesByAnnotation,
String[]  anyTagsByAnnotation,
String[]  eachTagsByAnnotation 
)
protectedpure virtual

Called to create the EventHandlerInfo.

Parameters
annotationthe annotation
methodthe method
producerTypesByAnnotationthe producer types
eventTypesByAnnotationthe event types
anyTagsByAnnotationthe any tags
eachTagsByAnnotationthe each tags
Returns
the event handler information object
abstract Class<?> [] org.qscript.eventsonfire.AbstractAnnotatedEventHandlerStrategy< ANNOTATION_TYPE extends Annotation >.getAllowedEventTypes ( ANNOTATION_TYPE  annotation,
Method  method 
)
protectedpure virtual

Returns the allowed event types as specified in the annotation. If the annotation does not specify any special event types, the method returns an empty array.

Parameters
annotationthe annotation
methodthe method
Returns
an array of event types, never null
abstract Class<?> [] org.qscript.eventsonfire.AbstractAnnotatedEventHandlerStrategy< ANNOTATION_TYPE extends Annotation >.getAllowedProducerTypes ( ANNOTATION_TYPE  annotation,
Method  method 
)
protectedpure virtual

Returns the allowed producer types as specified in the annotation. If the annotation does not specify any special producer types, the method returns an empty array.

Parameters
annotationthe annotation
methodthe method
Returns
an array of producer types, never null
abstract Class<ANNOTATION_TYPE> org.qscript.eventsonfire.AbstractAnnotatedEventHandlerStrategy< ANNOTATION_TYPE extends Annotation >.getAnnotationType ( )
protectedpure virtual

Returns the type of the annotation

Returns
the type of the annotation
abstract String [] org.qscript.eventsonfire.AbstractAnnotatedEventHandlerStrategy< ANNOTATION_TYPE extends Annotation >.getAnyTags ( ANNOTATION_TYPE  annotation,
Method  method 
)
protectedpure virtual

Returns the anyTag of the annotation.

Parameters
annotationthe annotation
methodthe method
Returns
an array of strings, never null
abstract String [] org.qscript.eventsonfire.AbstractAnnotatedEventHandlerStrategy< ANNOTATION_TYPE extends Annotation >.getEachTags ( ANNOTATION_TYPE  annotation,
Method  method 
)
protectedpure virtual

Returns the eachTag of the annotation.

Parameters
annotationthe annotation
methodthe method
Returns
an array of strings, never null

The documentation for this class was generated from the following file: