|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver
public class DefaultNamespaceHandlerResolver
Default implementation of the NamespaceHandler
. 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
Field Summary | |
---|---|
protected Log |
logger
Logger available to subclasses |
Constructor Summary | |
---|---|
DefaultNamespaceHandlerResolver()
Create a new DefaultNamespaceHandlerResolver using the
default mapping file location. |
|
DefaultNamespaceHandlerResolver(ClassLoader classLoader)
Create a new DefaultNamespaceHandlerResolver using the
default mapping file location. |
|
DefaultNamespaceHandlerResolver(ClassLoader classLoader,
String handlerMappingsLocation)
Create a new DefaultNamespaceHandlerResolver using the
supplied mapping file location. |
Method Summary | |
---|---|
NamespaceHandler |
resolve(String namespaceUri)
Locate the NamespaceHandler for the supplied namespace URI
from the configured mappings. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final Log logger
Constructor Detail |
---|
public DefaultNamespaceHandlerResolver()
DefaultNamespaceHandlerResolver
using the
default mapping file location.
This constructor will result in the thread context ClassLoader being used to load resources.
SPRING_HANDLER_MAPPINGS_LOCATION
public DefaultNamespaceHandlerResolver(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)SPRING_HANDLER_MAPPINGS_LOCATION
public DefaultNamespaceHandlerResolver(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 locationSPRING_HANDLER_MAPPINGS_LOCATION
Method Detail |
---|
public NamespaceHandler resolve(String namespaceUri)
NamespaceHandler
for the supplied namespace URI
from the configured mappings.
resolve
in interface NamespaceHandlerResolver
namespaceUri
- the relevant namespace URI
NamespaceHandler
, or null
if none found
|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |