public class VelocityConfigurerBeanDefinitionParser extends AbstractSimpleBeanDefinitionParser
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
BEAN_NAME |
ID_ATTRIBUTE, NAME_ATTRIBUTE| Constructor and Description |
|---|
VelocityConfigurerBeanDefinitionParser() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
getBeanClassName(org.w3c.dom.Element element)
Determine the bean class name corresponding to the supplied
Element. |
protected boolean |
isEligibleAttribute(java.lang.String attributeName)
Determine whether the given attribute is eligible for being
turned into a corresponding bean property value.
|
protected void |
postProcess(BeanDefinitionBuilder builder,
org.w3c.dom.Element element)
Hook method that derived classes can implement to inspect/change a
bean definition after parsing is complete.
|
protected java.lang.String |
resolveId(org.w3c.dom.Element element,
AbstractBeanDefinition definition,
ParserContext parserContext)
Resolve the ID for the supplied
BeanDefinition. |
doParse, extractPropertyName, isEligibleAttributedoParse, getBeanClass, getParentName, parseInternalparse, postProcessComponentDefinition, registerBeanDefinition, shouldFireEvents, shouldGenerateId, shouldGenerateIdAsFallback, shouldParseNameAsAliasespublic static final java.lang.String BEAN_NAME
public VelocityConfigurerBeanDefinitionParser()
protected java.lang.String resolveId(org.w3c.dom.Element element,
AbstractBeanDefinition definition,
ParserContext parserContext)
AbstractBeanDefinitionParserBeanDefinition.
When using generation, a name is generated automatically.
Otherwise, the ID is extracted from the "id" attribute, potentially with a
fallback to a generated id.
resolveId in class AbstractBeanDefinitionParserelement - the element that the bean definition has been built fromdefinition - the bean definition to be registeredparserContext - the object encapsulating the current state of the parsing process;
provides access to a BeanDefinitionRegistryprotected java.lang.String getBeanClassName(org.w3c.dom.Element element)
AbstractSingleBeanDefinitionParserElement.getBeanClassName in class AbstractSingleBeanDefinitionParserelement - the Element that is being parsedElement, or null if noneAbstractSingleBeanDefinitionParser.getBeanClass(org.w3c.dom.Element)protected boolean isEligibleAttribute(java.lang.String attributeName)
AbstractSimpleBeanDefinitionParserThe default implementation considers any attribute as eligible, except for the "id" attribute.
isEligibleAttribute in class AbstractSimpleBeanDefinitionParserattributeName - the attribute name taken straight from the
XML element being parsed (never null)protected void postProcess(BeanDefinitionBuilder builder, org.w3c.dom.Element element)
AbstractSimpleBeanDefinitionParserThe default implementation does nothing.
postProcess in class AbstractSimpleBeanDefinitionParserbuilder - the parsed (and probably totally defined) bean definition being builtelement - the XML element that was the source of the bean definition's metadata