org.springframework.binding.expression.ognl
Class OgnlExpressionParser
java.lang.Object
org.springframework.binding.expression.support.AbstractExpressionParser
org.springframework.binding.expression.ognl.OgnlExpressionParser
- All Implemented Interfaces:
- ExpressionParser
- Direct Known Subclasses:
- WebFlowOgnlExpressionParser
public class OgnlExpressionParser
- extends AbstractExpressionParser
An expression parser that parses Ognl expressions.
- Author:
- Keith Donald
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OgnlExpressionParser
public OgnlExpressionParser()
getConversionService
public ConversionService getConversionService()
- The conversion service to use to perform type conversions as needed by the OGNL system. If not specified, the
default is an instance of
DefaultConversionService
.
setConversionService
public void setConversionService(ConversionService conversionService)
- Sets the conversion service to use to perform type conversions as needed by the OGNL system.
- Parameters:
conversionService
- the conversion service to use
addPropertyAccessor
public void addPropertyAccessor(java.lang.Class<?> clazz,
ognl.PropertyAccessor propertyAccessor)
- Add a property access strategy for the given class.
- Parameters:
clazz
- the class that contains properties needing accesspropertyAccessor
- the property access strategy
doParseExpression
protected Expression doParseExpression(java.lang.String expressionString,
ParserContext context)
throws ParserException
- Specified by:
doParseExpression
in class AbstractExpressionParser
- Throws:
ParserException