Spring Data for VMware GemFire
Class CachingDefinedRegionsConfiguration
java.lang.Object
org.springframework.data.gemfire.config.annotation.support.AbstractAnnotationConfigSupport
org.springframework.data.gemfire.config.annotation.CachingDefinedRegionsConfiguration
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanClassLoaderAware,org.springframework.beans.factory.BeanFactoryAware,org.springframework.context.annotation.ImportAware,org.springframework.context.EnvironmentAware
@Configuration
public class CachingDefinedRegionsConfiguration
extends AbstractAnnotationConfigSupport
implements org.springframework.context.annotation.ImportAware
The
CachingDefinedRegionsConfiguration class is a Spring @Configuration class
that applies configuration to a Spring (Data GemFire/Geode) application to create GemFire/Geode cache
Regions based on the use of Spring's Cache Abstraction to enable caching for application
service classes and methods.- Since:
- 2.0.0
- See Also:
-
AnnotationAnnotatedElementGemFireCacheRegionRegionShortcutClientRegionShortcutPoolAnnotatedBeanDefinitionBeanDefinitionBeanPostProcessorConfigurableBeanFactoryAbstractBeanDefinitionBeanDefinitionBuilderBeanDefinitionRegistryBeanDefinitionRegistryPostProcessorCacheConfigCacheEvictCachePutCacheableCachingBeanConfigurationImportAwareAnnotatedElementUtilsAnnotationUtilsEnableCachingDefinedRegionsAbstractAnnotationConfigSupportBeanDefinitionRegistryPostProcessorSupportCacheTypeAwareRegionFactoryBean
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classCachingDefinedRegionsConfiguration.AbstractCacheNameResolveris an abstract base class encapsulating reusable functionality common to allCachingDefinedRegionsConfiguration.CacheNameResolverimplementations.static interfaceCachingDefinedRegionsConfiguration.CacheNameResolveris aFunctionalInterfacedeclaring a contract for all implementations used to resolve all cache names declared and used by a Spring application.protected static classNested classes/interfaces inherited from class org.springframework.data.gemfire.config.annotation.support.AbstractAnnotationConfigSupport
AbstractAnnotationConfigSupport.TypeResolver<T> -
Field Summary
Fields inherited from class org.springframework.data.gemfire.config.annotation.support.AbstractAnnotationConfigSupport
CURRENT_THREAD_CONTEXT_CLASS_LOADER, INFRASTRUCTURE_ROLES, ORG_SPRINGFRAMEWORK_DATA_GEMFIRE_PACKAGE, ORG_SPRINGFRAMEWORK_PACKAGE, SPRING_DATA_GEMFIRE_PROPERTY_PREFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.beans.factory.config.BeanPostProcessorcachingAnnotationsRegionBeanRegistrar(org.springframework.beans.factory.config.ConfigurableBeanFactory beanFactory) org.springframework.context.Lifecycleprotected Class<? extends Annotation>Returns theAnnotationtypethat configures and createsRegionsfor application serviceMethodsthat are annotated with Spring's Cache Abstraction Annotations.Returns the configuredCachingDefinedRegionsConfiguration.CacheNameResolverto resolve all the declared cache name on Spring application beans/components declared and registered in the Spring container (context).protected Optional<org.apache.geode.cache.client.ClientRegionShortcut>Returns the configuredClientRegionShortcutspecifying the data management policy to use when creating a clientRegion.Returns the name of the dedicatedPoolused by all caching-defined clientRegionsto send and receive data between the client and server.protected Optional<org.apache.geode.cache.RegionShortcut>Returns the configuredRegionShortcutspecifying the data management policy to use when creating a server (peer)Region.protected org.apache.geode.cache.client.ClientRegionShortcutResolves theClientRegionShortcutspecifying the data management policy to use when creating a clientRegion; defaults toClientRegionShortcut.PROXY.protected StringResolves the name of the dedicatedPoolused by all caching-defined clientRegionsto send and receive data between the client and server; defaults to DEFAULT.protected org.apache.geode.cache.RegionShortcutResolves theRegionShortcutspecifying the data management policy to use when creating a server (peer)Region; defaults toRegionShortcut.PARTITION.voidsetClientRegionShortcut(org.apache.geode.cache.client.ClientRegionShortcut clientRegionShortcut) Configures theClientRegionShortcutspecifying the data management policy to use when creating a clientRegion.voidsetImportMetadata(org.springframework.core.type.AnnotationMetadata importMetadata) voidsetPoolName(String poolName) Configures the name of the dedicatedPoolused by all caching-defined clientRegionsto send and receive data between the client and server.voidsetServerRegionShortcut(org.apache.geode.cache.RegionShortcut serverRegionShortcut) Configures theRegionShortcutspecifying the data management policy to use when creating a server (peer)Region.Methods inherited from class org.springframework.data.gemfire.config.annotation.support.AbstractAnnotationConfigSupport
arrayOfPropertyNamesFor, arrayOfPropertyNamesFor, asArrayProperty, cacheClientProperty, cacheCompressionProperty, cacheOffHeapProperty, cachePeerProperty, cacheProperty, cacheServerProperty, clusterProperty, diskStoreProperty, entitiesProperty, gatewayReceiverProperty, gatewaySenderProperty, getAnnotationAttributes, getAnnotationAttributes, getAnnotationAttributes, getAnnotationTypeName, getAnnotationTypeSimpleName, getBeanClassLoader, getBeanFactory, getEnvironment, getEvaluationContext, getLogger, hasValue, hasValue, hasValue, httpServiceProperty, isAnnotationPresent, isAnnotationPresent, isNotInfrastructureBean, isNotInfrastructureBean, isNotInfrastructureClass, isNotInfrastructureRole, isUserLevelMethod, locatorProperty, logDebug, logDebug, logError, logError, loggingProperty, logInfo, logInfo, logWarning, logWarning, managementProperty, managerProperty, memcachedServiceProperty, namedCacheServerProperty, namedDiskStoreProperty, namedGatewaySenderProperty, namedPoolProperty, newEvaluationContext, newLogger, pdxProperty, poolProperty, propertyName, register, register, requireProperty, resolveAnnotation, resolveBeanClass, resolveBeanClass, resolveBeanClass, resolveBeanClassLoader, resolveBeanClassLoader, resolveBeanClassLoader, resolveBeanClassName, resolveProperty, resolveProperty, resolveProperty, resolveProperty, resolveProperty, resolveProperty, resolveProperty, resolveProperty, safeResolveType, securityProperty, serviceProperty, setBeanClassLoader, setBeanFactory, setEnvironment, sslProperty, statsProperty
-
Constructor Details
-
CachingDefinedRegionsConfiguration
public CachingDefinedRegionsConfiguration()
-
-
Method Details
-
getAnnotationType
Returns theAnnotationtypethat configures and createsRegionsfor application serviceMethodsthat are annotated with Spring's Cache Abstraction Annotations.- Specified by:
getAnnotationTypein classAbstractAnnotationConfigSupport- Returns:
- the
Annotationtypethat configures and createsRegionsfor application serviceMethodsthat are annotated with Spring's Cache Abstraction Annotations. - See Also:
-
getCacheNameResolver
Returns the configuredCachingDefinedRegionsConfiguration.CacheNameResolverto resolve all the declared cache name on Spring application beans/components declared and registered in the Spring container (context).- Returns:
- the configured
CachingDefinedRegionsConfiguration.CacheNameResolverto resolve all teh caches used by the Spring application. - See Also:
-
setClientRegionShortcut
public void setClientRegionShortcut(org.apache.geode.cache.client.ClientRegionShortcut clientRegionShortcut) Configures theClientRegionShortcutspecifying the data management policy to use when creating a clientRegion.- Parameters:
clientRegionShortcut-ClientRegionShortcutspecifying the data management policy to use when creating a clientRegion.- See Also:
-
ClientRegionShortcut
-
getClientRegionShortcut
Returns the configuredClientRegionShortcutspecifying the data management policy to use when creating a clientRegion.- Returns:
- an
OptionalClientRegionShortcutspecifying the data management policy to use when creating a clientRegion. - See Also:
-
ClientRegionShortcutsetClientRegionShortcut(ClientRegionShortcut)Optional
-
resolveClientRegionShortcut
protected org.apache.geode.cache.client.ClientRegionShortcut resolveClientRegionShortcut()Resolves theClientRegionShortcutspecifying the data management policy to use when creating a clientRegion; defaults toClientRegionShortcut.PROXY.- Returns:
- the resolved
ClientRegionShortcutspecifying the data management policy to use when creating a clientRegion; defaults toClientRegionShortcut.PROXY. - See Also:
-
ClientRegionShortcutgetClientRegionShortcut()
-
setPoolName
Configures the name of the dedicatedPoolused by all caching-defined clientRegionsto send and receive data between the client and server.- Parameters:
poolName-Stringcontaining the name of the dedicatedPoolfor all caching-defined clientRegions.
-
getPoolName
Returns the name of the dedicatedPoolused by all caching-defined clientRegionsto send and receive data between the client and server. -
resolvePoolName
Resolves the name of the dedicatedPoolused by all caching-defined clientRegionsto send and receive data between the client and server; defaults to DEFAULT.- Returns:
- the
nameof the dedicatedPoolused by all caching-defined clientRegions; defaults to DEFAULT. - See Also:
-
setServerRegionShortcut
public void setServerRegionShortcut(org.apache.geode.cache.RegionShortcut serverRegionShortcut) Configures theRegionShortcutspecifying the data management policy to use when creating a server (peer)Region.- Parameters:
serverRegionShortcut-RegionShortcutspecifying the data management policy to use when creating a server (peer)Region.- See Also:
-
RegionShortcut
-
getServerRegionShortcut
Returns the configuredRegionShortcutspecifying the data management policy to use when creating a server (peer)Region.- Returns:
- an
OptionalRegionShortcutspecifying the data management policy to use when creating a server (peer)Region. - See Also:
-
setServerRegionShortcut(RegionShortcut)RegionShortcutOptional
-
resolveServerRegionShortcut
protected org.apache.geode.cache.RegionShortcut resolveServerRegionShortcut()Resolves theRegionShortcutspecifying the data management policy to use when creating a server (peer)Region; defaults toRegionShortcut.PARTITION.- Returns:
- the resolved
RegionShortcutspecifying the data management policy to use when creating a server (peer)Region; defaults toRegionShortcut.PARTITION. - See Also:
-
RegionShortcutgetServerRegionShortcut()
-
setImportMetadata
public void setImportMetadata(org.springframework.core.type.AnnotationMetadata importMetadata) - Specified by:
setImportMetadatain interfaceorg.springframework.context.annotation.ImportAware
-
cachingAnnotationsRegionBeanRegistrar
@Bean public org.springframework.beans.factory.config.BeanPostProcessor cachingAnnotationsRegionBeanRegistrar(org.springframework.beans.factory.config.ConfigurableBeanFactory beanFactory) -
cachingDefinedRegionsCompositeLifecycleBean
@Bean public org.springframework.context.Lifecycle cachingDefinedRegionsCompositeLifecycleBean()
-