StandardBeanExpressionResolver constructor

StandardBeanExpressionResolver({
  1. ExpressionParser? parser,
  2. ParserContext parserContext = ParserContext.template,
  3. List<PropertyAccessor> propertyAccessors = const [],
  4. 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);