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
BeanDefinitionParser that parses an AuditingHandler BeanDefinition
Since:
1.5
Author:
Oliver Gierke
  • Field Summary

    Fields inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser

    ID_ATTRIBUTE, NAME_ATTRIBUTE
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new AuditingHandlerBeanDefinitionParser to point to a MappingContext with the given bean name.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    doParse(Element element, org.springframework.beans.factory.support.BeanDefinitionBuilder builder)
     
    protected Class<?>
     
    Returns the name of the bean definition the AuditingHandler 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AuditingHandlerBeanDefinitionParser

      public AuditingHandlerBeanDefinitionParser(String mappingContextBeanName)
      Creates a new AuditingHandlerBeanDefinitionParser to point to a MappingContext with the given bean name.
      Parameters:
      mappingContextBeanName - must not be null or empty.
  • Method Details

    • getResolvedBeanName

      public String getResolvedBeanName()
      Returns the name of the bean definition the AuditingHandler was registered under.
      Returns:
      the resolvedBeanName
    • getBeanClass

      @NonNull protected Class<?> getBeanClass(Element element)
      Overrides:
      getBeanClass in class org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser
    • shouldGenerateId

      protected boolean shouldGenerateId()
      Overrides:
      shouldGenerateId in class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
    • doParse

      protected void doParse(Element element, org.springframework.beans.factory.support.BeanDefinitionBuilder builder)
      Overrides:
      doParse in class org.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 class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser