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:
org.springframework.beans.factory.xml.BeanDefinitionParser
- Direct Known Subclasses:
IsNewAwareAuditingHandlerBeanDefinitionParser
public class AuditingHandlerBeanDefinitionParser
extends org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser
- 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
protected Class<?>
getBeanClass
(Element element) Returns the name of the bean definition theAuditingHandler
was registered under.protected String
resolveId
(Element element, org.springframework.beans.factory.support.AbstractBeanDefinition definition, org.springframework.beans.factory.xml.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 classorg.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser
-
shouldGenerateId
protected boolean shouldGenerateId()- Overrides:
shouldGenerateId
in classorg.springframework.beans.factory.xml.AbstractBeanDefinitionParser
-
doParse
protected void doParse(Element element, org.springframework.beans.factory.support.BeanDefinitionBuilder builder) - Overrides:
doParse
in classorg.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser
-
resolveId
protected String resolveId(Element element, org.springframework.beans.factory.support.AbstractBeanDefinition definition, org.springframework.beans.factory.xml.ParserContext parserContext) - Overrides:
resolveId
in classorg.springframework.beans.factory.xml.AbstractBeanDefinitionParser
-