public class EntityDefinedRegionsConfiguration extends AbstractAnnotationConfigSupport implements ImportBeanDefinitionRegistrar
EntityDefinedRegionsConfiguration
class is Spring ImportBeanDefinitionRegistrar
used in
the EnableEntityDefinedRegions
annotation to dynamically create GemFire/Geode Regions
based on the application persistent entity classes.ClassLoader
,
Annotation
,
Region
,
BeanDefinition
,
BeanDefinitionBuilder
,
BeanDefinitionRegistry
,
ImportBeanDefinitionRegistrar
,
FixedPartitionAttributesFactoryBean
,
LocalRegionFactoryBean
,
PartitionAttributesFactoryBean
,
PartitionedRegionFactoryBean
,
RegionAttributesFactoryBean
,
ReplicatedRegionFactoryBean
,
ClientRegionFactoryBean
,
AbstractAnnotationConfigSupport
,
CacheTypeAwareRegionFactoryBean
,
GemFireComponentClassTypeScanner
,
GemfireMappingContext
,
GemfirePersistentEntity
,
ClientRegion
,
LocalRegion
,
PartitionRegion
,
ReplicateRegion
,
Region
Modifier and Type | Class and Description |
---|---|
protected static class |
EntityDefinedRegionsConfiguration.RegionBeanDefinitionMetadata
The
EntityDefinedRegionsConfiguration.RegionBeanDefinitionMetadata class encapsulates details for creating a Region
from application persistent entities. |
AbstractAnnotationConfigSupport.TypeResolver<T>
Modifier and Type | Field and Description |
---|---|
protected static org.apache.geode.cache.client.ClientRegionShortcut |
DEFAULT_CLIENT_REGION_SHORTCUT |
protected static org.apache.geode.cache.RegionShortcut |
DEFAULT_SERVER_REGION_SHORTCUT |
CURRENT_THREAD_CONTEXT_CLASS_LOADER, INFRASTRUCTURE_ROLES, ORG_SPRINGFRAMEWORK_DATA_GEMFIRE_PACKAGE, ORG_SPRINGFRAMEWORK_PACKAGE, SPRING_DATA_GEMFIRE_PROPERTY_PREFIX
Constructor and Description |
---|
EntityDefinedRegionsConfiguration() |
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, redisServiceProperty, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
registerBeanDefinitions
protected static final org.apache.geode.cache.client.ClientRegionShortcut DEFAULT_CLIENT_REGION_SHORTCUT
protected static final org.apache.geode.cache.RegionShortcut DEFAULT_SERVER_REGION_SHORTCUT
protected Class<? extends Annotation> getAnnotationType()
Annotation
type
that configures and creates Regions
for application persistent entities.getAnnotationType
in class AbstractAnnotationConfigSupport
Annotation
type
that configures and creates Regions
for application persistent entities.EnableEntityDefinedRegions
,
Annotation
,
Class
public void registerBeanDefinitions(AnnotationMetadata importingClassMetadata, BeanDefinitionRegistry registry)
Region
bean definitions in the Spring context for all application domain object
that have been identified as persistent entities
.registerBeanDefinitions
in interface ImportBeanDefinitionRegistrar
importingClassMetadata
- Class
with the EnableEntityDefinedRegions
annotation.registry
- BeanDefinitionRegistry
used to register the Region
bean definitions
in the Spring context.BeanDefinitionRegistry
,
AnnotationMetadata
protected GemFireComponentClassTypeScanner newGemFireComponentClassTypeScanner(AnnotationMetadata importingClassMetadata, AnnotationAttributes enableEntityDefinedRegionsAttributes)
protected Set<String> resolveBasePackages(AnnotationMetadata importingClassMetaData, AnnotationAttributes enableEntityDefinedRegionAttributes)
protected Iterable<TypeFilter> resolveExcludes(AnnotationAttributes enableEntityDefinedRegionsAttributes)
protected Iterable<TypeFilter> resolveIncludes(AnnotationAttributes enableEntityDefinedRegionsAttributes)
protected Iterable<TypeFilter> resolveRegionAnnotatedPersistentEntityTypeFilters()
protected GemfirePersistentEntity<?> getPersistentEntity(Class<?> persistentEntityType)
persistent entity
for the given application
domain object type.persistentEntityType
- type
of the application domain object used to lookup
the persistent entity
from the mapping context
.persistent entity
for the given application domain object type.GemfirePersistentEntity
,
Class
@NonNull protected GemfireMappingContext resolveMappingContext()
mapping context
by returning the configured
mapping context
if present, or attempts to lookup
the mapping context
from the configured BeanFactory
.
If the lookup is unsuccessful, then this method will return a new mapping context
.mapping context
.GemfireMappingContext
protected void registerRegionBeanDefinition(EntityDefinedRegionsConfiguration.RegionBeanDefinitionMetadata regionMetadata, BeanDefinitionRegistry registry)
Region
determined from
the application domain object, persistent entity
.regionMetadata
- EntityDefinedRegionsConfiguration.RegionBeanDefinitionMetadata
used to configure the Region
bean definition.registry
- BeanDefinitionRegistry
used to register the Region
bean definition
in the Spring context.BeanDefinitionRegistry
,
GemfirePersistentEntity
protected List<RegionConfigurer> resolveRegionConfigurers()
protected BeanDefinitionBuilder setRegionAttributes(BeanDefinitionBuilder regionFactoryBeanBuilder, EntityDefinedRegionsConfiguration.RegionBeanDefinitionMetadata regionMetadata)
protected org.apache.geode.cache.client.ClientRegionShortcut resolveClientRegionShortcut(EntityDefinedRegionsConfiguration.RegionBeanDefinitionMetadata regionMetadata, Annotation regionAnnotation, AnnotationAttributes regionAnnotationAttributes)
protected org.apache.geode.cache.RegionShortcut resolveServerRegionShortcut(EntityDefinedRegionsConfiguration.RegionBeanDefinitionMetadata regionMetadata, Annotation regionAnnotation, AnnotationAttributes regionAnnotationAttributes)
protected BeanDefinitionBuilder setClientRegionAttributes(EntityDefinedRegionsConfiguration.RegionBeanDefinitionMetadata regionMetadata, AnnotationAttributes regionAnnotationAttributes, BeanDefinitionBuilder regionFactoryBeanBuilder)
protected BeanDefinitionBuilder setPartitionRegionAttributes(EntityDefinedRegionsConfiguration.RegionBeanDefinitionMetadata regionMetadata, AnnotationAttributes regionAnnotationAttributes, BeanDefinitionBuilder regionFactoryBeanBuilder, BeanDefinitionBuilder regionAttributesFactoryBeanBuilder)
protected BeanDefinitionBuilder setFixedPartitionRegionAttributes(AnnotationAttributes regionAnnotationAttributes, BeanDefinitionBuilder partitionAttributesFactoryBeanBuilder)
protected BeanDefinitionBuilder setReplicateRegionAttributes(EntityDefinedRegionsConfiguration.RegionBeanDefinitionMetadata regionMetadata, AnnotationAttributes regionAnnotationAttributes, BeanDefinitionBuilder regionFactoryBeanBuilder)
protected GemfirePersistentEntity<?> postProcess(AnnotationMetadata importingClassMetadata, BeanDefinitionRegistry registry, GemfirePersistentEntity<?> persistentEntity)
GemfirePersistentEntity
to offer additional feature support
(e.g. dynamic Index creation).importingClassMetadata
- AnnotationMetadata
for the importing application class.registry
- BeanDefinitionRegistry
used to register Spring bean definitions.persistentEntity
- GemfirePersistentEntity
to process.GemfirePersistentEntity
.BeanDefinitionRegistry
,
AnnotationMetadata
,
GemfirePersistentEntity
Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.