public class RestrictedTypeLocator
extends org.springframework.expression.spel.support.StandardTypeLocator
Constructor and Description |
---|
RestrictedTypeLocator() |
RestrictedTypeLocator(ClassLoader classLoader) |
Modifier and Type | Method and Description |
---|---|
Class<?> |
findType(String typeName)
Find a (possibly unqualified) type reference among a list of authorized types - first using the type name as-is,
then trying any registered prefixes if the type name cannot be found.
|
public RestrictedTypeLocator()
public RestrictedTypeLocator(ClassLoader classLoader)
public Class<?> findType(String typeName) throws org.springframework.expression.EvaluationException
findType
in interface org.springframework.expression.TypeLocator
findType
in class org.springframework.expression.spel.support.StandardTypeLocator
typeName
- the type to locateorg.springframework.expression.EvaluationException
- if the type cannot be found