concept NamespaceHandler in category spring

appears as: NamespaceHandler, NamespaceHdler, NamespaceHdler
Spring in Practice

This is an excerpt from Manning's book Spring in Practice.

  • Create a NamespaceHandler and BeanDefinitionParsers to parse the custom tags
  • Tell Spring where to find the schema and the NamespaceHandler
  • Besides the pointer to the XSD file, you also need a pointer to the NamespaceHandler. Once again you use a properties file. This time it’s spring.handlers, also located in the src/main/resources/META-INF folder of the kite module:

    http\://springinpractice.com/schema/kite=
            com.springinpractice.ch14.kite.config.xml.KiteNamespaceHandler

    With the two properties files you just created, Spring knows where to find the schema and NamespaceHandler for the custom schema. You of course need to create those things, so let’s do that now.