QScript  2.1.2
Expression and algorithm evaluator
 All Classes Namespaces Functions Variables Pages
Public Member Functions | Protected Member Functions | List of all members
org.qscript.eventsonfire.AbstractEventHandlerStrategy Class Referenceabstract

Inherits org.qscript.eventsonfire.EventHandlerStrategy.

Inherited by org.qscript.eventsonfire.AbstractAnnotatedEventHandlerStrategy< ANNOTATION_TYPE extends Annotation >.

Public Member Functions

void scan (Collection< EventHandlerInfo > infos, Class<?> type)
 

Protected Member Functions

abstract EventHandlerInfo createEventHandlerInfo (Method method)
 

Detailed Description

An abstract implementation of an EventHandlerStrategy that scans a class for possible event handlers

Author
Manfred HANTSCHEL

Member Function Documentation

abstract EventHandlerInfo org.qscript.eventsonfire.AbstractEventHandlerStrategy.createEventHandlerInfo ( Method  method)
protectedpure virtual

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

Implemented in org.qscript.eventsonfire.AbstractAnnotatedEventHandlerStrategy< ANNOTATION_TYPE extends Annotation >.

void org.qscript.eventsonfire.AbstractEventHandlerStrategy.scan ( Collection< EventHandlerInfo infos,
Class<?>  type 
)

Scans the specified class for methods, that are capable of handling events and adds EventHandlerInfos for each method for the specified collection

Parameters
infosthe collection of infos
typethe class

Implements org.qscript.eventsonfire.EventHandlerStrategy.


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