Package org.apache.bval.jsr
Class DelegateExpressionFactory
- java.lang.Object
-
- jakarta.el.ExpressionFactory
-
- org.apache.bval.jsr.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 Summary
Constructors Constructor Description DelegateExpressionFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> T
coerceToType(Object obj, Class<T> targetType)
jakarta.el.MethodExpression
createMethodExpression(jakarta.el.ELContext context, String expression, Class<?> expectedReturnType, Class<?>[] expectedParamTypes)
jakarta.el.ValueExpression
createValueExpression(jakarta.el.ELContext context, String expression, Class<?> expectedType)
jakarta.el.ValueExpression
createValueExpression(Object instance, Class<?> expectedType)
Map<String,Method>
getInitFunctionMap()
jakarta.el.ELResolver
getStreamELResolver()
jakarta.el.ExpressionFactory
getWrapped()
-
-
-
Method Detail
-
createValueExpression
public jakarta.el.ValueExpression createValueExpression(jakarta.el.ELContext context, String expression, Class<?> expectedType)
- Specified by:
createValueExpression
in classjakarta.el.ExpressionFactory
-
createValueExpression
public jakarta.el.ValueExpression createValueExpression(Object instance, Class<?> expectedType)
- Specified by:
createValueExpression
in classjakarta.el.ExpressionFactory
-
createMethodExpression
public jakarta.el.MethodExpression createMethodExpression(jakarta.el.ELContext context, String expression, Class<?> expectedReturnType, Class<?>[] expectedParamTypes)
- Specified by:
createMethodExpression
in classjakarta.el.ExpressionFactory
-
coerceToType
public <T> T coerceToType(Object obj, Class<T> targetType)
- Specified by:
coerceToType
in classjakarta.el.ExpressionFactory
-
getStreamELResolver
public jakarta.el.ELResolver getStreamELResolver()
- Overrides:
getStreamELResolver
in classjakarta.el.ExpressionFactory
-
getInitFunctionMap
public Map<String,Method> getInitFunctionMap()
- Overrides:
getInitFunctionMap
in classjakarta.el.ExpressionFactory
-
getWrapped
public jakarta.el.ExpressionFactory getWrapped()
-
-