public class SpelParserConfiguration extends Object
SpelExpressionParser(SpelParserConfiguration)
Constructor and Description |
---|
SpelParserConfiguration()
Create a new
SpelParserConfiguration instance with default settings. |
SpelParserConfiguration(boolean autoGrowNullReferences,
boolean autoGrowCollections)
Create a new
SpelParserConfiguration instance. |
SpelParserConfiguration(boolean autoGrowNullReferences,
boolean autoGrowCollections,
int maximumAutoGrowSize)
Create a new
SpelParserConfiguration instance. |
SpelParserConfiguration(SpelCompilerMode compilerMode,
ClassLoader compilerClassLoader)
Create a new
SpelParserConfiguration instance. |
SpelParserConfiguration(SpelCompilerMode compilerMode,
ClassLoader compilerClassLoader,
boolean autoGrowNullReferences,
boolean autoGrowCollections,
int maximumAutoGrowSize)
Create a new
SpelParserConfiguration instance. |
SpelParserConfiguration(SpelCompilerMode compilerMode,
ClassLoader compilerClassLoader,
boolean autoGrowNullReferences,
boolean autoGrowCollections,
int maximumAutoGrowSize,
int maximumExpressionLength)
Create a new
SpelParserConfiguration instance. |
Modifier and Type | Method and Description |
---|---|
ClassLoader |
getCompilerClassLoader()
Return the ClassLoader to use as the basis for expression compilation.
|
SpelCompilerMode |
getCompilerMode()
Return the configuration mode for parsers using this configuration object.
|
int |
getMaximumAutoGrowSize()
Return the maximum size that a collection can auto grow.
|
int |
getMaximumExpressionLength()
Return the maximum number of characters that a SpEL expression can contain.
|
boolean |
isAutoGrowCollections()
Return
true if collections should be automatically grown. |
boolean |
isAutoGrowNullReferences()
Return
true if null references should be automatically grown. |
public SpelParserConfiguration()
SpelParserConfiguration
instance with default settings.public SpelParserConfiguration(@Nullable SpelCompilerMode compilerMode, @Nullable ClassLoader compilerClassLoader)
SpelParserConfiguration
instance.compilerMode
- the compiler mode for the parsercompilerClassLoader
- the ClassLoader to use as the basis for expression compilationpublic SpelParserConfiguration(boolean autoGrowNullReferences, boolean autoGrowCollections)
SpelParserConfiguration
instance.autoGrowNullReferences
- if null references should automatically growautoGrowCollections
- if collections should automatically growSpelParserConfiguration(boolean, boolean, int)
public SpelParserConfiguration(boolean autoGrowNullReferences, boolean autoGrowCollections, int maximumAutoGrowSize)
SpelParserConfiguration
instance.autoGrowNullReferences
- if null references should automatically growautoGrowCollections
- if collections should automatically growmaximumAutoGrowSize
- the maximum size that the collection can auto growpublic SpelParserConfiguration(@Nullable SpelCompilerMode compilerMode, @Nullable ClassLoader compilerClassLoader, boolean autoGrowNullReferences, boolean autoGrowCollections, int maximumAutoGrowSize)
SpelParserConfiguration
instance.compilerMode
- the compiler mode that parsers using this configuration object should usecompilerClassLoader
- the ClassLoader to use as the basis for expression compilationautoGrowNullReferences
- if null references should automatically growautoGrowCollections
- if collections should automatically growmaximumAutoGrowSize
- the maximum size that the collection can auto growpublic SpelParserConfiguration(@Nullable SpelCompilerMode compilerMode, @Nullable ClassLoader compilerClassLoader, boolean autoGrowNullReferences, boolean autoGrowCollections, int maximumAutoGrowSize, int maximumExpressionLength)
SpelParserConfiguration
instance.compilerMode
- the compiler mode that parsers using this configuration object should usecompilerClassLoader
- the ClassLoader to use as the basis for expression compilationautoGrowNullReferences
- if null references should automatically growautoGrowCollections
- if collections should automatically growmaximumAutoGrowSize
- the maximum size that a collection can auto growmaximumExpressionLength
- the maximum length of a SpEL expression;
must be a positive numberpublic SpelCompilerMode getCompilerMode()
@Nullable public ClassLoader getCompilerClassLoader()
public boolean isAutoGrowNullReferences()
true
if null
references should be automatically grown.public boolean isAutoGrowCollections()
true
if collections should be automatically grown.public int getMaximumAutoGrowSize()
public int getMaximumExpressionLength()