java.lang.Object | |
↳ | org.springframework.expression.spel.support.StandardTypeLocator |
A default implementation of a TypeLocator that uses the context classloader (or any classloader set upon it). It supports 'well known' packages so if a type cannot be found it will try the registered imports to locate it.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Find a (possibly unqualified) type reference - first using the typename as is, then trying any registered
prefixes if the typename cannot be found.
| |||||||||||
Return a list of all the import prefixes registered with this StandardTypeLocator.
| |||||||||||
Register a new import prefix that will be used when searching for unqualified types.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.expression.TypeLocator
|
Find a (possibly unqualified) type reference - first using the typename as is, then trying any registered prefixes if the typename cannot be found.
typename | the type to locate |
---|
EvaluationException | if the type cannot be found |
---|
Return a list of all the import prefixes registered with this StandardTypeLocator.
Register a new import prefix that will be used when searching for unqualified types. Expected format is something like "java.lang".
prefix | the prefix to register |
---|