Interface ELContextFactory
- All Known Implementing Classes:
DefaultElContextFactory
public interface ELContextFactory
A factory for creating a EL context object that will be used to evaluate a target object of an EL expression.
Note this ELContextFactory is not used at parse time, only evaluation time. Therefore, factories should not be
concerned with setting up parse-time context attributes such as the variable mapper and function mapper that play no
part during expression evaluation.
- Author:
- Keith Donald, Jeremy Grelle
-
Method Summary
Modifier and TypeMethodDescriptionjakarta.el.ELContext
getELContext
(Object target) Configures and returns anELContext
to be used in evaluating EL expressions on the given base target object.
-
Method Details
-
getELContext
Configures and returns anELContext
to be used in evaluating EL expressions on the given base target object. In certain environments the target will be null and the base object of the expression is expected to be resolved via the ELContext'sELResolver
chain.- Parameters:
target
- The base object for the expression evaluation- Returns:
- ELContext The configured ELContext instance for evaluating expressions.
-