| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.context.expression.StandardBeanExpressionResolver
public class StandardBeanExpressionResolver
Standard implementation of the
 BeanExpressionResolver
 interface, parsing and evaluating Spring EL using Spring's expression module.
ExpressionParser, 
SpelExpressionParser, 
StandardEvaluationContext| Field Summary | |
|---|---|
static String | 
DEFAULT_EXPRESSION_PREFIX
Default expression prefix: "#{"  | 
static String | 
DEFAULT_EXPRESSION_SUFFIX
Default expression suffix: "}"  | 
| Constructor Summary | |
|---|---|
StandardBeanExpressionResolver()
 | 
|
| Method Summary | |
|---|---|
protected  void | 
customizeEvaluationContext(StandardEvaluationContext evalContext)
Template method for customizing the expression evaluation context.  | 
 Object | 
evaluate(String value,
         BeanExpressionContext evalContext)
Evaluate the given value as an expression, if applicable; return the value as-is otherwise.  | 
 void | 
setExpressionParser(ExpressionParser expressionParser)
Specify the EL parser to use for expression parsing.  | 
 void | 
setExpressionPrefix(String expressionPrefix)
Set the prefix that an expression string starts with.  | 
 void | 
setExpressionSuffix(String expressionSuffix)
Set the suffix that an expression string ends with.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final String DEFAULT_EXPRESSION_PREFIX
public static final String DEFAULT_EXPRESSION_SUFFIX
| Constructor Detail | 
|---|
public StandardBeanExpressionResolver()
| Method Detail | 
|---|
public void setExpressionPrefix(String expressionPrefix)
DEFAULT_EXPRESSION_PREFIXpublic void setExpressionSuffix(String expressionSuffix)
DEFAULT_EXPRESSION_SUFFIXpublic void setExpressionParser(ExpressionParser expressionParser)
Default is a SpelExpressionParser,
 compatible with standard Unified EL style expression syntax.
public Object evaluate(String value,
                       BeanExpressionContext evalContext)
                throws BeansException
BeanExpressionResolver
evaluate in interface BeanExpressionResolvervalue - the value to checkevalContext - the evaluation context
BeansException - if evaluation failedprotected void customizeEvaluationContext(StandardEvaluationContext evalContext)
The default implementation is empty.
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||