Adding a simple test case to assert the contract and functional behavior of the <gfe:auto-region-lookup/> element when used in Spring context config coupled with GemFire's native cache.xml configuration file.

This commit is contained in:
John Blum
2014-08-30 14:44:58 -07:00
parent 920e53794e
commit cc9c724fbc
5 changed files with 104 additions and 3 deletions

View File

@@ -25,7 +25,9 @@ import org.springframework.beans.factory.xml.ParserContext;
import org.w3c.dom.Element;
/**
* The AutoRegionLookupBeanDefinitionParser class...
* The AutoRegionLookupBeanDefinitionParser class is a Spring BeanDefinitionParser that registers a BeanPostProcessor
* that auto registers Regions defined in GemFire's native cache.xml format, or when using GemFire 8's cluster-based
* configuration service to define Regions, creating corresponding beans in the Spring context.
*
* @author John Blum
* @see org.springframework.beans.factory.config.BeanDefinition
@@ -33,10 +35,11 @@ import org.w3c.dom.Element;
* @see org.springframework.beans.factory.support.BeanDefinitionBuilder
* @see org.springframework.beans.factory.xml.BeanDefinitionParser
* @see org.springframework.beans.factory.xml.ParserContext
* @see org.springframework.data.gemfire.config.AutoRegionLookupBeanPostProcessor
* @see org.w3c.dom.Element
* @since 1.5.0
*/
public class AutoRegionLookupBeanDefinitionParser implements BeanDefinitionParser {
class AutoRegionLookupBeanDefinitionParser implements BeanDefinitionParser {
@Override
public BeanDefinition parse(final Element element, final ParserContext parserContext) {

View File

@@ -33,7 +33,7 @@ import com.gemstone.gemfire.cache.Region;
/**
* The AutoRegionLookupBeanPostProcessor class is a Spring BeanPostProcessor that post processes a GemFireCache by
* registering all Cache Regions that have not been explicitly defined in the Spring application context. This is
* usually the case for Regions that have been defined in GemFire native cache.xml or defined use GemFire 8's new
* usually the case for Regions that have been defined in GemFire's native cache.xml or defined use GemFire 8's new
* cluster-based configuration service.
*
* @author John Blum