public class ExtensionsNamespaceHandler
extends org.springframework.beans.factory.xml.NamespaceHandlerSupport
NamespaceHandler
capable of parsing configurations and operations for any given Extension
which supports the given namespace.
For this namespace handler to function, an instance of ExtensionManager
has to be accessible and the ExtensionManager.discoverExtensions(ClassLoader)
needs to have successfully discovered and register extensions.Constructor and Description |
---|
ExtensionsNamespaceHandler() |
Modifier and Type | Method and Description |
---|---|
void |
init()
Attempts to get a hold on a
ExtensionManager
instance |
org.springframework.beans.factory.config.BeanDefinition |
parse(Element element,
org.springframework.beans.factory.xml.ParserContext parserContext)
Registers parsers for the given element, provided that an extension can be found which
responds to that namespace
|
public void init()
ExtensionManager
instanceIllegalStateException
- if no extension manager could be foundpublic org.springframework.beans.factory.config.BeanDefinition parse(Element element, org.springframework.beans.factory.xml.ParserContext parserContext)
parse
in interface org.springframework.beans.factory.xml.NamespaceHandler
parse
in class org.springframework.beans.factory.xml.NamespaceHandlerSupport
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.