Class AuditingHandlerBeanDefinitionParser
java.lang.Object
org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser
org.springframework.data.auditing.config.AuditingHandlerBeanDefinitionParser
- All Implemented Interfaces:
BeanDefinitionParser
- Direct Known Subclasses:
IsNewAwareAuditingHandlerBeanDefinitionParser
- Since:
- 1.5
- Author:
- Oliver Gierke
-
Field Summary
Fields inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
ID_ATTRIBUTE, NAME_ATTRIBUTE
-
Constructor Summary
ConstructorDescriptionAuditingHandlerBeanDefinitionParser
(String mappingContextBeanName) Creates a newAuditingHandlerBeanDefinitionParser
to point to aMappingContext
with the given bean name. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
doParse
(Element element, BeanDefinitionBuilder builder) protected Class<?>
getBeanClass
(Element element) Returns the name of the bean definition theAuditingHandler
was registered under.protected String
resolveId
(Element element, AbstractBeanDefinition definition, ParserContext parserContext) protected boolean
Methods inherited from class org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser
doParse, getBeanClassName, getParentName, parseInternal
Methods inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
parse, postProcessComponentDefinition, registerBeanDefinition, shouldFireEvents, shouldGenerateIdAsFallback, shouldParseNameAsAliases
-
Constructor Details
-
AuditingHandlerBeanDefinitionParser
Creates a newAuditingHandlerBeanDefinitionParser
to point to aMappingContext
with the given bean name.- Parameters:
mappingContextBeanName
- must not be null or empty.
-
-
Method Details
-
getResolvedBeanName
Returns the name of the bean definition theAuditingHandler
was registered under.- Returns:
- the resolvedBeanName
-
getBeanClass
- Overrides:
getBeanClass
in classAbstractSingleBeanDefinitionParser
-
shouldGenerateId
protected boolean shouldGenerateId()- Overrides:
shouldGenerateId
in classAbstractBeanDefinitionParser
-
doParse
- Overrides:
doParse
in classAbstractSingleBeanDefinitionParser
-
resolveId
protected String resolveId(Element element, AbstractBeanDefinition definition, ParserContext parserContext) - Overrides:
resolveId
in classAbstractBeanDefinitionParser
-