Polishing method names
This commit is contained in:
@@ -16,7 +16,7 @@ public class DefaultELContextFactory implements ELContextFactory {
|
||||
* Configures and returns a simple EL context to use to parse EL expressions.
|
||||
* @return The configured simple ELContext instance.
|
||||
*/
|
||||
public ELContext getParseTimeELContext() {
|
||||
public ELContext getParseContext() {
|
||||
return new SimpleELContext();
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ public class DefaultELContextFactory implements ELContextFactory {
|
||||
* Configures and returns a simple EL context to use to evaluate EL expressions on the given base target object.
|
||||
* @return The configured simple ELContext instance.
|
||||
*/
|
||||
public ELContext getEvalTimeELContext(Object target) {
|
||||
public ELContext getEvaluationContext(Object target) {
|
||||
return new SimpleELContext(target);
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ public interface ELContextFactory {
|
||||
* Configures and returns an {@link ELContext} to be used in parsing EL expressions.
|
||||
* @return ELContext The configured ELContext instance for parsing expressions.
|
||||
*/
|
||||
public ELContext getParseTimeELContext();
|
||||
public ELContext getParseContext();
|
||||
|
||||
/**
|
||||
* Configures and returns an {@link ELContext} to be used in evaluating EL expressions on the given base target
|
||||
@@ -23,6 +23,6 @@ public interface ELContextFactory {
|
||||
* @param target The base object for the expression evaluation.
|
||||
* @return ELContext The configured ELContext instance for evaluating expressions.
|
||||
*/
|
||||
public ELContext getEvalTimeELContext(Object target);
|
||||
public ELContext getEvaluationContext(Object target);
|
||||
|
||||
}
|
||||
@@ -59,7 +59,7 @@ public class ELExpression implements SettableExpression {
|
||||
* @return {@link ELContext} The thread-bound {@link ELContext} instance.
|
||||
*/
|
||||
protected ELContext getELContext(Object target) {
|
||||
ELContext ctx = factory.getEvalTimeELContext(target);
|
||||
ELContext ctx = factory.getEvaluationContext(target);
|
||||
return ctx;
|
||||
}
|
||||
|
||||
|
||||
@@ -113,7 +113,7 @@ public class ELExpressionParser implements ExpressionParser {
|
||||
* @throws ParserException
|
||||
*/
|
||||
protected SettableExpression doParseSettableExpression(String expressionString) throws ParserException {
|
||||
ELContext ctx = contextFactory.getParseTimeELContext();
|
||||
ELContext ctx = contextFactory.getParseContext();
|
||||
try {
|
||||
return new ELExpression(contextFactory, expressionFactory.createValueExpression(ctx, expressionString,
|
||||
Object.class));
|
||||
|
||||
Reference in New Issue
Block a user