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.ELContextThis 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 Classes Modifier and Type Class Description private classStandardELResolutionContext.MsgMapperThis mapper resolves the variable identifies "msg" to the message object of the current handler invocationprivate classStandardELResolutionContext.NoopFunctionMapperThis function mapper does nothing, i.e.
-
Field Summary
Fields Modifier and Type Field Description private javax.el.FunctionMapperfunctionMapperprivate java.lang.Objectmessageprivate javax.el.ELResolverresolverprivate javax.el.VariableMappervariableMapper
-
Constructor Summary
Constructors Constructor Description StandardELResolutionContext(java.lang.Object message)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.el.ELResolvergetELResolver()The resolver for the event object.javax.el.FunctionMappergetFunctionMapper()javax.el.VariableMappergetVariableMapper()-
Methods inherited from class javax.el.ELContext
addEvaluationListener, convertToType, enterLambdaScope, exitLambdaScope, getContext, getEvaluationListeners, getImportHandler, getLambdaArgument, getLocale, isLambdaArgument, isPropertyResolved, notifyAfterEvaluation, notifyBeforeEvaluation, notifyPropertyResolved, putContext, setLocale, setPropertyResolved, setPropertyResolved
-
-
-
-
Method Detail
-
getELResolver
public javax.el.ELResolver getELResolver()
The resolver for the event object.- Specified by:
getELResolverin classjavax.el.ELContext- See Also:
ELContext.getELResolver()
-
getFunctionMapper
public javax.el.FunctionMapper getFunctionMapper()
- Specified by:
getFunctionMapperin classjavax.el.ELContext- See Also:
ELContext.getFunctionMapper()
-
getVariableMapper
public javax.el.VariableMapper getVariableMapper()
- Specified by:
getVariableMapperin classjavax.el.ELContext- See Also:
ELContext.getVariableMapper()
-
-