public class GroovyMarkupConfigurerBeanDefinitionParser extends AbstractSimpleBeanDefinitionParser
<mvc:groovy-configurer>
MVC namespace element and register a
GroovyConfigurer
bean.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BEAN_NAME
The bean name used for the
GroovyMarkupConfigurer . |
ID_ATTRIBUTE, NAME_ATTRIBUTE
Constructor and Description |
---|
GroovyMarkupConfigurerBeanDefinitionParser() |
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 name)
Determine whether the given attribute is eligible for being
turned into a corresponding bean property value.
|
protected java.lang.String |
resolveId(org.w3c.dom.Element element,
AbstractBeanDefinition definition,
ParserContext parserContext)
Resolve the ID for the supplied
BeanDefinition . |
doParse, extractPropertyName, isEligibleAttribute, postProcess
doParse, getBeanClass, getParentName, parseInternal
parse, postProcessComponentDefinition, registerBeanDefinition, shouldFireEvents, shouldGenerateId, shouldGenerateIdAsFallback, shouldParseNameAsAliases
public static final java.lang.String BEAN_NAME
GroovyMarkupConfigurer
.public GroovyMarkupConfigurerBeanDefinitionParser()
protected java.lang.String resolveId(org.w3c.dom.Element element, AbstractBeanDefinition definition, ParserContext parserContext)
AbstractBeanDefinitionParser
BeanDefinition
.
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 AbstractBeanDefinitionParser
element
- 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 BeanDefinitionRegistry
protected java.lang.String getBeanClassName(org.w3c.dom.Element element)
AbstractSingleBeanDefinitionParser
Element
.getBeanClassName
in class AbstractSingleBeanDefinitionParser
element
- the Element
that is being parsedElement
, or null
if noneAbstractSingleBeanDefinitionParser.getBeanClass(org.w3c.dom.Element)
protected boolean isEligibleAttribute(java.lang.String name)
AbstractSimpleBeanDefinitionParser
The default implementation considers any attribute as eligible, except for the "id" attribute.
isEligibleAttribute
in class AbstractSimpleBeanDefinitionParser
name
- the attribute name taken straight from the
XML element being parsed (never null
)