Class SpelParserConfiguration

java.lang.Object
org.springframework.expression.spel.SpelParserConfiguration

public class SpelParserConfiguration extends Object
Configuration object for the SpEL expression parser.
Since:
3.0
Author:
Juergen Hoeller, Phillip Webb, Andy Clement, Sam Brannen
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • getCompilerMode

      public SpelCompilerMode getCompilerMode()
      Return the compiler mode for parsers using this configuration object.
    • getCompilerClassLoader

      public @Nullable ClassLoader getCompilerClassLoader()
      Return the ClassLoader to use as the basis for expression compilation.
    • isAutoGrowNullReferences

      public boolean isAutoGrowNullReferences()
      Return true if null references should be automatically grown.
    • isAutoGrowCollections

      public boolean isAutoGrowCollections()
      Return true if collections should be automatically grown.
    • getMaximumAutoGrowSize

      public int getMaximumAutoGrowSize()
      Return the maximum size to which a collection can auto grow.
    • getMaximumExpressionLength

      public int getMaximumExpressionLength()
      Return the maximum number of characters that a SpEL expression can contain.
      Since:
      5.2.25
    • getMaximumOperations

      public int getMaximumOperations()
      Return the maximum number of operations permitted during SpEL expression evaluation.
      Since:
      6.2.19