public class DefaultNamespaceHandlerResolver extends Object implements NamespaceHandlerResolver
NamespaceHandlerResolver interface.
 Resolves namespace URIs to implementation classes based on the mappings
 contained in mapping file.
 By default, this implementation looks for the mapping file at
 META-INF/spring.handlers, but this can be changed using the
 DefaultNamespaceHandlerResolver(ClassLoader, String) constructor.
NamespaceHandler, 
DefaultBeanDefinitionDocumentReader| Modifier and Type | Field and Description | 
|---|---|
| static String | DEFAULT_HANDLER_MAPPINGS_LOCATIONThe location to look for the mapping files. | 
| protected Log | loggerLogger available to subclasses. | 
| Constructor and Description | 
|---|
| DefaultNamespaceHandlerResolver()Create a new  DefaultNamespaceHandlerResolverusing the
 default mapping file location. | 
| DefaultNamespaceHandlerResolver(ClassLoader classLoader)Create a new  DefaultNamespaceHandlerResolverusing the
 default mapping file location. | 
| DefaultNamespaceHandlerResolver(ClassLoader classLoader,
                               String handlerMappingsLocation)Create a new  DefaultNamespaceHandlerResolverusing the
 supplied mapping file location. | 
| Modifier and Type | Method and Description | 
|---|---|
| NamespaceHandler | resolve(String namespaceUri)Locate the  NamespaceHandlerfor the supplied namespace URI
 from the configured mappings. | 
| String | toString() | 
public static final String DEFAULT_HANDLER_MAPPINGS_LOCATION
protected final Log logger
public DefaultNamespaceHandlerResolver()
DefaultNamespaceHandlerResolver using the
 default mapping file location.
 This constructor will result in the thread context ClassLoader being used to load resources.
DEFAULT_HANDLER_MAPPINGS_LOCATIONpublic DefaultNamespaceHandlerResolver(@Nullable
                                       ClassLoader classLoader)
DefaultNamespaceHandlerResolver using the
 default mapping file location.classLoader - the ClassLoader instance used to load mapping resources
 (may be null, in which case the thread context ClassLoader will be used)DEFAULT_HANDLER_MAPPINGS_LOCATIONpublic DefaultNamespaceHandlerResolver(@Nullable
                                       ClassLoader classLoader,
                                       String handlerMappingsLocation)
DefaultNamespaceHandlerResolver using the
 supplied mapping file location.classLoader - the ClassLoader instance used to load mapping resources
 may be null, in which case the thread context ClassLoader will be used)handlerMappingsLocation - the mapping file location@Nullable public NamespaceHandler resolve(String namespaceUri)
NamespaceHandler for the supplied namespace URI
 from the configured mappings.resolve in interface NamespaceHandlerResolvernamespaceUri - the relevant namespace URINamespaceHandler, or null if none found