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 Classes
    Modifier and Type
    Class
    Description
    private class 
    This mapper resolves the variable identifies "msg" to the message object of the current handler invocation
    private class 
    This function mapper does nothing, i.e.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final javax.el.FunctionMapper
     
    private final Object
     
    private final javax.el.ELResolver
     
    private final javax.el.VariableMapper
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    javax.el.ELResolver
    The resolver for the event object.
    javax.el.FunctionMapper
     
    javax.el.VariableMapper
     

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • resolver

      private final javax.el.ELResolver resolver
    • functionMapper

      private final javax.el.FunctionMapper functionMapper
    • variableMapper

      private final javax.el.VariableMapper variableMapper
    • message

      private final Object message
  • Constructor Details

    • StandardELResolutionContext

      public StandardELResolutionContext(Object message)
  • Method Details

    • getELResolver

      public javax.el.ELResolver getELResolver()
      The resolver for the event object.
      Specified by:
      getELResolver in class javax.el.ELContext
      See Also:
      • ELContext.getELResolver()
    • getFunctionMapper

      public javax.el.FunctionMapper getFunctionMapper()
      Specified by:
      getFunctionMapper in class javax.el.ELContext
      See Also:
      • ELContext.getFunctionMapper()
    • getVariableMapper

      public javax.el.VariableMapper getVariableMapper()
      Specified by:
      getVariableMapper in class javax.el.ELContext
      See Also:
      • ELContext.getVariableMapper()