public abstract class AbstractProviderConfigNamespaceHandler extends Object implements NamespaceHandler
NamespaceHandler
for Spring Social provider modules to create configuration namespaces.
Requires, at minimum, that the provider-specific namespace provider an AbstractProviderConfigBeanDefinition for parsing "config" elements.Constructor and Description |
---|
AbstractProviderConfigNamespaceHandler() |
Modifier and Type | Method and Description |
---|---|
BeanDefinitionHolder |
decorate(Node node,
BeanDefinitionHolder beanDefinitionHolder,
ParserContext parserContext) |
protected abstract AbstractProviderConfigBeanDefinitionParser |
getProviderConfigBeanDefinitionParser()
Implemented by provider namespaces to provide an instance of the bean definition parser that will parse the "config" element.
|
void |
init() |
protected void |
loadParsers(Map<String,BeanDefinitionParser> parsers)
Hook method to allow provider-specific implementation to register bean definition parsers for their namespace.
|
BeanDefinition |
parse(Element element,
ParserContext parserContext) |
public AbstractProviderConfigNamespaceHandler()
public final void init()
init
in interface NamespaceHandler
public final BeanDefinition parse(Element element, ParserContext parserContext)
parse
in interface NamespaceHandler
public BeanDefinitionHolder decorate(Node node, BeanDefinitionHolder beanDefinitionHolder, ParserContext parserContext)
decorate
in interface NamespaceHandler
protected abstract AbstractProviderConfigBeanDefinitionParser getProviderConfigBeanDefinitionParser()
protected void loadParsers(Map<String,BeanDefinitionParser> parsers)
parsers
- a Map of parsers to be applied when parsing the namespace.