Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package net.northfuse.resources.config;
 

Author(s):
tylers2
 
 public final class ResourceNamespaceHandler extends NamespaceHandlerSupport {
 
	public static final String NAMESPACE = "http://northfuse.net/schema/resources-ext";

Registers the bean definition parsers for the script and style config elements.
	public void init() {
		ScriptDefinitionParser scriptDefinitionParser = new ScriptDefinitionParser();
		StyleDefinitionParser styleDefinitionParser = new StyleDefinitionParser();
		registerBeanDefinitionParser("script"scriptDefinitionParser);
		registerBeanDefinitionParser("style"styleDefinitionParser);
		registerBeanDefinitionParser("resources"new ResourcesDefinitionParser(scriptDefinitionParserstyleDefinitionParser));
	}
New to GrepCode? Check out our FAQ X