Class DelegateExpressionFactory


  • public class DelegateExpressionFactory
    extends jakarta.el.ExpressionFactory
    EL5.0 ExpressionFactory lookups the ServiceLoader before the system property In our tests we have at least 2 EL impls and DefaultMessageInterpolatorTest needs a replaceable ExpressionFactory So this a wrapper, which checks the system property first and then asking the ServiceLoader
    • Constructor Detail

      • DelegateExpressionFactory

        public DelegateExpressionFactory()
    • Method Detail

      • createValueExpression

        public jakarta.el.ValueExpression createValueExpression​(jakarta.el.ELContext context,
                                                                String expression,
                                                                Class<?> expectedType)
        Specified by:
        createValueExpression in class jakarta.el.ExpressionFactory
      • createValueExpression

        public jakarta.el.ValueExpression createValueExpression​(Object instance,
                                                                Class<?> expectedType)
        Specified by:
        createValueExpression in class jakarta.el.ExpressionFactory
      • createMethodExpression

        public jakarta.el.MethodExpression createMethodExpression​(jakarta.el.ELContext context,
                                                                  String expression,
                                                                  Class<?> expectedReturnType,
                                                                  Class<?>[] expectedParamTypes)
        Specified by:
        createMethodExpression in class jakarta.el.ExpressionFactory
      • coerceToType

        public <T> T coerceToType​(Object obj,
                                  Class<T> targetType)
        Specified by:
        coerceToType in class jakarta.el.ExpressionFactory
      • getStreamELResolver

        public jakarta.el.ELResolver getStreamELResolver()
        Overrides:
        getStreamELResolver in class jakarta.el.ExpressionFactory
      • getInitFunctionMap

        public Map<String,​Method> getInitFunctionMap()
        Overrides:
        getInitFunctionMap in class jakarta.el.ExpressionFactory
      • getWrapped

        public jakarta.el.ExpressionFactory getWrapped()