Package net.engio.mbassy.dispatch.el
Class StandardELResolutionContext
java.lang.Object
javax.el.ELContext
net.engio.mbassy.dispatch.el.StandardELResolutionContext
public class StandardELResolutionContext
extends javax.el.ELContext
This ELContext implementation provides support for standard BeanEL resolution in conditional message handlers.
The message parameter of the message handlers is bound to 'msg' such that it can be referenced int the EL expressions.
@Handler(condition = "msg.type == 'onClick'")
public void handle(ButtonEvent event)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate classThis mapper resolves the variable identifies "msg" to the message object of the current handler invocationprivate classThis function mapper does nothing, i.e. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final javax.el.FunctionMapperprivate final Objectprivate final javax.el.ELResolverprivate final javax.el.VariableMapper -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavax.el.ELResolverThe resolver for the event object.javax.el.FunctionMapperjavax.el.VariableMapperMethods inherited from class javax.el.ELContext
addEvaluationListener, convertToType, enterLambdaScope, exitLambdaScope, getContext, getEvaluationListeners, getImportHandler, getLambdaArgument, getLocale, isLambdaArgument, isPropertyResolved, notifyAfterEvaluation, notifyBeforeEvaluation, notifyPropertyResolved, putContext, setLocale, setPropertyResolved, setPropertyResolved
-
Field Details
-
resolver
private final javax.el.ELResolver resolver -
functionMapper
private final javax.el.FunctionMapper functionMapper -
variableMapper
private final javax.el.VariableMapper variableMapper -
message
-
-
Constructor Details
-
StandardELResolutionContext
-
-
Method Details
-
getELResolver
public javax.el.ELResolver getELResolver()The resolver for the event object.- Specified by:
getELResolverin classjavax.el.ELContext- See Also:
-
getFunctionMapper
public javax.el.FunctionMapper getFunctionMapper()- Specified by:
getFunctionMapperin classjavax.el.ELContext- See Also:
-
getVariableMapper
public javax.el.VariableMapper getVariableMapper()- Specified by:
getVariableMapperin classjavax.el.ELContext- See Also:
-