QScript  2.1.2
Expression and algorithm evaluator
 All Classes Namespaces Functions Variables Pages
Public Member Functions | List of all members
org.qscript.eventsonfire.PooledEventHandler Interface Reference

Public Member Functions

Class<?>[] producer () default
 
Class<?>[] event () default
 
String[] anyTag () default
 
String[] eachTag () default
 

Detailed Description

Tags a method as pooled event handler within a consumer, which may be called by the Events class. The method needs two arguments, the producer and the event. The producer is optional. The method will only be called if the type of the producer and the event fits the parameters and optionally the specified types. The method will be called by an execution pool defined in the Events class.

Author
Manfred HANTSCHEL

Member Function Documentation

String [] org.qscript.eventsonfire.PooledEventHandler.anyTag ( )

Optional. One or more tags - the event has to be fired with at least one of these tags to trigger the event handler.

Returns
an array of strings
String [] org.qscript.eventsonfire.PooledEventHandler.eachTag ( )

Optional. One or more tags - the event has to be fired with all of these tags to trigger the event handler.

Returns
an array of strings
Class<?> [] org.qscript.eventsonfire.PooledEventHandler.event ( )

Optional. One or more classes of events handled by the method. Checked against the event argument. If empty, all classes are allowed that fit the events argument.

Returns
the allowed events
Class<?> [] org.qscript.eventsonfire.PooledEventHandler.producer ( )

Optional. One or more classes of producers handled by the method. Checked against the optional producer argument. If empty and a producer argument is specified, all classes are allowed that fit the producer argument. If empty and no producer argument is specified, all producers are allowed.

Returns
the allowed producers

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