Class AbstractPeerRegionParser

java.lang.Object
org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser
org.springframework.data.gemfire.config.xml.AbstractPeerRegionParser
All Implemented Interfaces:
org.springframework.beans.factory.xml.BeanDefinitionParser

public abstract class AbstractPeerRegionParser extends org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser
Abstract Spring XML parser for peer Region bean definitions.
Since:
2.2.0
See Also:
  • Region
  • AsyncEventQueue
  • GatewaySender
  • BeanDefinitionBuilder
  • ParserContext
  • AbstractRegionParser
  • Element
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final org.slf4j.Logger
     
    protected static final String
     
    protected static final String
     
    protected static final String
     

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

    ID_ATTRIBUTE, NAME_ATTRIBUTE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    doParse(Element element, org.springframework.beans.factory.xml.ParserContext parserContext, org.springframework.beans.factory.support.BeanDefinitionBuilder builder)
    protected abstract void
    doParseRegion(Element element, org.springframework.beans.factory.xml.ParserContext parserContext, org.springframework.beans.factory.support.BeanDefinitionBuilder builder, boolean subRegion)
     
    protected void
    doParseRegionConfiguration(Element element, org.springframework.beans.factory.xml.ParserContext parserContext, org.springframework.beans.factory.support.BeanDefinitionBuilder regionBuilder, org.springframework.beans.factory.support.BeanDefinitionBuilder regionAttributesBuilder, boolean subRegion)
     
    protected Class<?>
    protected String
    protected abstract Class<?>
    Return the type of the Region FactoryBean.
    protected boolean
    Determines whether the given SDG XML namespace configuration Element defines a Region template used as the base configuration for one or more Regions.
    protected boolean
    Determines whether the current SDG XML namespace Region Element is a Sub-Region definition.
    protected void
    parseCollectionOfCustomSubElements(Element element, org.springframework.beans.factory.xml.ParserContext parserContext, org.springframework.beans.factory.support.BeanDefinitionBuilder builder, String className, String subElementName, String propertyName)
     
    protected void
    parseSubRegions(Element element, org.springframework.beans.factory.xml.ParserContext parserContext, String resolvedCacheRef)
     
    protected void
    validateDataPolicyShortcutAttributesMutualExclusion(Element element, org.springframework.beans.factory.xml.ParserContext parserContext)
     

    Methods inherited from class org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser

    doParse, getBeanClassName, parseInternal

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

    parse, postProcessComponentDefinition, registerBeanDefinition, resolveId, shouldFireEvents, shouldGenerateId, shouldGenerateIdAsFallback, shouldParseNameAsAliases

    Methods inherited from class java.lang.Object

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

  • Constructor Details

    • AbstractPeerRegionParser

      public AbstractPeerRegionParser()
  • Method Details

    • doParseRegionConfiguration

      protected void doParseRegionConfiguration(Element element, org.springframework.beans.factory.xml.ParserContext parserContext, org.springframework.beans.factory.support.BeanDefinitionBuilder regionBuilder, org.springframework.beans.factory.support.BeanDefinitionBuilder regionAttributesBuilder, boolean subRegion)
    • getBeanClass

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

      protected abstract Class<?> getRegionFactoryClass()
      Return the type of the Region FactoryBean.
      Returns:
      the type of the Region FactoryBean.
      See Also:
    • getParentName

      protected String getParentName(Element element)
      Overrides:
      getParentName in class org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser
    • isRegionTemplate

      protected boolean isRegionTemplate(@NonNull Element element)
      Determines whether the given SDG XML namespace configuration Element defines a Region template used as the base configuration for one or more Regions.
      Parameters:
      element - SDG XML namespace Element.
      Returns:
      a boolean value indicating whether the given SDG XML namespace configuration Element defines a Region template.
      See Also:
    • isSubRegion

      protected boolean isSubRegion(@NonNull Element element)
      Determines whether the current SDG XML namespace Region Element is a Sub-Region definition.
      Parameters:
      element - SDG XML namespace Region Element to evaluate as a Sub-Region.
      Returns:
      a boolean value indicating whether the current SDG XML namespace Region Element is a Sub-Region definition.
      See Also:
    • doParse

      protected void doParse(Element element, org.springframework.beans.factory.xml.ParserContext parserContext, org.springframework.beans.factory.support.BeanDefinitionBuilder builder)
      Overrides:
      doParse in class org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser
    • doParseRegion

      protected abstract void doParseRegion(Element element, org.springframework.beans.factory.xml.ParserContext parserContext, org.springframework.beans.factory.support.BeanDefinitionBuilder builder, boolean subRegion)
    • parseCollectionOfCustomSubElements

      protected void parseCollectionOfCustomSubElements(Element element, org.springframework.beans.factory.xml.ParserContext parserContext, org.springframework.beans.factory.support.BeanDefinitionBuilder builder, String className, String subElementName, String propertyName)
    • parseSubRegions

      protected void parseSubRegions(Element element, org.springframework.beans.factory.xml.ParserContext parserContext, String resolvedCacheRef)
    • validateDataPolicyShortcutAttributesMutualExclusion

      protected void validateDataPolicyShortcutAttributesMutualExclusion(Element element, org.springframework.beans.factory.xml.ParserContext parserContext)