Module org.evrete.dsl.java
Package org.evrete.dsl.annotation
Annotation Interface EnvironmentListener
Annotation for methods intended to listen to changes in the
Environment.
Methods annotated with @EnvironmentListener will be called in response to each
Environment.set(String, Object) invocation that affects the specified environment key.
Annotated methods must adhere to the following constraints:
- Must be
public. - Must return
void. - Must have exactly one argument (the value corresponding to the environment key of interest).
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionSpecifies the key fromEnvironmentto be used as the method argument.
-
Element Details
-
value
String valueSpecifies the key fromEnvironmentto be used as the method argument.- Returns:
- The key of the environment.
- Default:
- ""
-