org.springframework.beans.factory.xml

Class DefaultNamespaceHandlerResolver

  • java.lang.Object
    • org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String DEFAULT_HANDLER_MAPPINGS_LOCATION
      The location to look for the mapping files.
      protected Log logger
      Logger available to subclasses.
    • Constructor Summary

      Constructors 
      Constructor and Description
      DefaultNamespaceHandlerResolver()
      Create a new DefaultNamespaceHandlerResolver using the default mapping file location.
      DefaultNamespaceHandlerResolver(java.lang.ClassLoader classLoader)
      Create a new DefaultNamespaceHandlerResolver using the default mapping file location.
      DefaultNamespaceHandlerResolver(java.lang.ClassLoader classLoader, java.lang.String handlerMappingsLocation)
      Create a new DefaultNamespaceHandlerResolver using the supplied mapping file location.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      NamespaceHandler resolve(java.lang.String namespaceUri)
      Locate the NamespaceHandler for the supplied namespace URI from the configured mappings.
      java.lang.String toString() 
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • DEFAULT_HANDLER_MAPPINGS_LOCATION

        public static final java.lang.String DEFAULT_HANDLER_MAPPINGS_LOCATION
        The location to look for the mapping files. Can be present in multiple JAR files.
        See Also:
        Constant Field Values
      • logger

        protected final Log logger
        Logger available to subclasses.
    • Constructor Detail

      • DefaultNamespaceHandlerResolver

        public DefaultNamespaceHandlerResolver()
        Create a new DefaultNamespaceHandlerResolver using the default mapping file location.

        This constructor will result in the thread context ClassLoader being used to load resources.

        See Also:
        DEFAULT_HANDLER_MAPPINGS_LOCATION
      • DefaultNamespaceHandlerResolver

        public DefaultNamespaceHandlerResolver(@Nullable
                                               java.lang.ClassLoader classLoader)
        Create a new DefaultNamespaceHandlerResolver using the default mapping file location.
        Parameters:
        classLoader - the ClassLoader instance used to load mapping resources (may be null, in which case the thread context ClassLoader will be used)
        See Also:
        DEFAULT_HANDLER_MAPPINGS_LOCATION
      • DefaultNamespaceHandlerResolver

        public DefaultNamespaceHandlerResolver(@Nullable
                                               java.lang.ClassLoader classLoader,
                                               java.lang.String handlerMappingsLocation)
        Create a new DefaultNamespaceHandlerResolver using the supplied mapping file location.
        Parameters:
        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
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object