StandardBeanExpressionResolver constructor
StandardBeanExpressionResolver({
- ExpressionParser? parser,
- ParserContext parserContext = ParserContext.template,
- List<
PropertyAccessor> propertyAccessors = const [], - List<
MethodResolver> methodResolvers = const [],
Creates a resolver using parser (a SpelExpressionParser limited to
maxExpressionLength characters by default) and parserContext;
propertyAccessors and methodResolvers are added to every
evaluation context, before the built-in ones. An application context
passes the accessor and resolver of its own introspector.
Implementation
StandardBeanExpressionResolver({
ExpressionParser? parser,
this.parserContext = ParserContext.template,
List<PropertyAccessor> propertyAccessors = const [],
List<MethodResolver> methodResolvers = const [],
}) : parser =
parser ??
SpelExpressionParser(
SpelParserConfiguration.builder()
.maximumExpressionLength(maxExpressionLength())
.build(),
),
_accessors = List.unmodifiable(propertyAccessors),
_resolvers = List.unmodifiable(methodResolvers);