Package de.businesscode.bcdui.el
Class ELEnvironment
java.lang.Object
de.businesscode.bcdui.el.ELEnvironment
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionELEnvironment
(jakarta.servlet.http.HttpServletRequest request) ELEnvironment
(Object bean, String bindName) creates environment to evaluate on a given beanELEnvironment
(String prefix, Class<?> staticFunctionProvider) -
Method Summary
Modifier and TypeMethodDescriptionstatic String
evaluateExpression
(String expression, Object targetBean, String beanBindName) evaluates a String with possible EL with bcdBean in scopestatic void
void
setVariable
(String variableName, Object value)
-
Field Details
-
EXPRESSION_FACTORY_NAME
- See Also:
-
-
Constructor Details
-
Method Details
-
eval
-
main
- Throws:
Exception
-
setVariable
-
evaluateExpression
evaluates a String with possible EL with bcdBean in scope- Parameters:
expression
- to evaluatetargetBean
- the bean to set into contextbeanBindName
- name to bind the bean to in context- Returns:
- either a String if it does not contain expression, or evaluated expression, also may be null
- Throws:
RuntimeException
- in case the targetBean is null or the expression fails to evaluate
-