public class IndexConfiguration extends EntityDefinedRegionsConfiguration
IndexConfiguration
class is a Spring ImportBeanDefinitionRegistrar
and extension of EntityDefinedRegionsConfiguration
used in the EnableIndexing
annotation
to dynamically create GemFire/Geode Region
Indexes
based on
GemfirePersistentEntity
GemfirePersistentProperty
annotations.Annotation
,
Region
,
LuceneIndex
,
Index
,
BeanDefinitionBuilder
,
BeanDefinitionRegistry
,
AnnotationMetadata
,
Id
,
IndexFactoryBean
,
IndexType
,
EnableIndexing
,
EntityDefinedRegionsConfiguration
,
GemfirePersistentEntity
,
GemfirePersistentProperty
,
Indexed
,
LuceneIndexed
,
LuceneIndexFactoryBean
EntityDefinedRegionsConfiguration.RegionBeanDefinitionMetadata
AbstractAnnotationConfigSupport.TypeResolver<T>
DEFAULT_CLIENT_REGION_SHORTCUT, DEFAULT_SERVER_REGION_SHORTCUT
INFRASTRUCTURE_ROLES, ORG_SPRINGFRAMEWORK_DATA_GEMFIRE_PACKAGE, ORG_SPRINGFRAMEWORK_PACKAGE, SPRING_DATA_GEMFIRE_PROPERTY_PREFIX
Constructor and Description |
---|
IndexConfiguration() |
Modifier and Type | Method and Description |
---|---|
protected Class<? extends Annotation> |
getEnableIndexingAnnotationType()
Returns the
Annotation type that configures and creates Region Indexes
from application persistent entity properties. |
protected String |
getEnableIndexingAnnotationTypeName()
Returns the name of the
Annotation type that configures and creates Region Indexes
from application persistent entity properties. |
protected String |
getEnableIndexingAnnotationTypeSimpleName()
Returns the simple name of the
Annotation type that configures and creates Region
Indexes from application persistent entity properties. |
protected GemfirePersistentEntity<?> |
postProcess(AnnotationMetadata importingClassMetadata,
BeanDefinitionRegistry registry,
GemfirePersistentEntity<?> persistentEntity)
Performs addition post processing on the
GemfirePersistentEntity to offer additional feature support
(e.g. dynamic Index creation). |
protected void |
registerIndexBeanDefinition(AnnotationAttributes enableIndexingAttributes,
GemfirePersistentEntity<?> persistentEntity,
GemfirePersistentProperty persistentProperty,
IndexType indexType,
Annotation indexAnnotation,
BeanDefinitionRegistry registry)
Registers an Index of the given
IndexType for the GemfirePersistentProperty
on the GemfirePersistentEntity using the Annotation meta-data to define the Index. |
protected void |
registerLuceneIndexBeanDefinition(AnnotationAttributes enableIndexingAttributes,
GemfirePersistentEntity<?> persistentEntity,
GemfirePersistentProperty persistentProperty,
Annotation luceneIndexAnnotation,
BeanDefinitionRegistry registry)
Registers a
LuceneIndex for the GemfirePersistentProperty on the GemfirePersistentEntity
using the Annotation meta-data to define the Index. |
getAnnotationType, getPersistentEntity, newGemFireComponentClassTypeScanner, registerBeanDefinitions, registerRegionBeanDefinition, resolveBasePackages, resolveClientRegionShortcut, resolveExcludes, resolveIncludes, resolveMappingContext, resolveRegionAnnotatedPersistentEntityTypeFilters, resolveRegionConfigurers, resolveServerRegionShortcut, setClientRegionAttributes, setFixedPartitionRegionAttributes, setPartitionRegionAttributes, setRegionAttributes, setReplicateRegionAttributes
arrayOfPropertyNamesFor, arrayOfPropertyNamesFor, asArrayProperty, cacheClientProperty, cacheCompressionProperty, cacheOffHeapProperty, cachePeerProperty, cacheProperty, cacheServerProperty, clusterProperty, diskStoreProperty, entitiesProperty, getAnnotationAttributes, getAnnotationAttributes, getAnnotationAttributes, getAnnotationTypeName, getAnnotationTypeSimpleName, getBeanClassLoader, getBeanFactory, getEnvironment, getEvaluationContext, getLog, hasValue, hasValue, hasValue, httpServiceProperty, isAnnotationPresent, isAnnotationPresent, isNotInfrastructureBean, isNotInfrastructureBean, isNotInfrastructureClass, isNotInfrastructureClass, isNotInfrastructureRole, isUserLevelMethod, locatorProperty, logDebug, logDebug, logError, logError, loggingProperty, logInfo, logInfo, logWarning, logWarning, managementProperty, managerProperty, memcachedServiceProperty, namedCacheServerProperty, namedDiskStoreProperty, namedPoolProperty, newEvaluationContext, newLog, pdxProperty, poolProperty, propertyName, redisServiceProperty, register, register, requireProperty, resolveAnnotation, resolveBeanClass, resolveBeanClass, resolveBeanClassLoader, resolveBeanClassLoader, resolveBeanClassName, resolveProperty, resolveProperty, resolveProperty, resolveProperty, resolveProperty, resolveProperty, resolveProperty, resolveProperty, safeResolveType, securityProperty, serviceProperty, setBeanClassLoader, setBeanFactory, setEnvironment, sslProperty, statsProperty
protected Class<? extends Annotation> getEnableIndexingAnnotationType()
Annotation
type
that configures and creates Region
Indexes
from application persistent entity properties.Annotation
type
that configures and creates Region
Indexes
from application persistent entity properties.EnableIndexing
,
Annotation
,
Class
protected String getEnableIndexingAnnotationTypeName()
Annotation
type
that configures and creates Region
Indexes
from application persistent entity properties.Annotation
type
that configures and creates Region
Indexes from application persistent entity properties.getEnableIndexingAnnotationType()
,
Class.getName()
protected String getEnableIndexingAnnotationTypeSimpleName()
Annotation
type
that configures and creates Region
Indexes from application persistent entity properties.Annotation
type
that configures and creates
Region
Indexes from application persistent entity properties.getEnableIndexingAnnotationType()
,
Class.getSimpleName()
protected GemfirePersistentEntity<?> postProcess(AnnotationMetadata importingClassMetadata, BeanDefinitionRegistry registry, GemfirePersistentEntity<?> persistentEntity)
EntityDefinedRegionsConfiguration
GemfirePersistentEntity
to offer additional feature support
(e.g. dynamic Index creation).postProcess
in class EntityDefinedRegionsConfiguration
importingClassMetadata
- AnnotationMetadata
for the importing application class.registry
- BeanDefinitionRegistry
used to register Spring bean definitions.persistentEntity
- GemfirePersistentEntity
to process.GemfirePersistentEntity
.BeanDefinitionRegistry
,
AnnotationMetadata
,
GemfirePersistentEntity
protected void registerIndexBeanDefinition(AnnotationAttributes enableIndexingAttributes, GemfirePersistentEntity<?> persistentEntity, GemfirePersistentProperty persistentProperty, IndexType indexType, Annotation indexAnnotation, BeanDefinitionRegistry registry)
IndexType
for the GemfirePersistentProperty
on the GemfirePersistentEntity
using the Annotation
meta-data to define the Index.enableIndexingAttributes
- AnnotationAttributes
containing meta-data
for the EnableIndexing
annotation.persistentEntity
- GemfirePersistentEntity
containing the GemfirePersistentProperty
to be indexed.persistentProperty
- GemfirePersistentProperty
for which the Index will be created.indexType
- IndexType
enum specifying the Index type (e.g. KEY, HASH, etc).indexAnnotation
- Index Annotation
.registry
- BeanDefinitionRegistry
used to register the Index bean definition.Annotation
,
BeanDefinitionBuilder
,
BeanDefinitionRegistry
,
IndexType
,
GemfirePersistentEntity
,
GemfirePersistentProperty
protected void registerLuceneIndexBeanDefinition(AnnotationAttributes enableIndexingAttributes, GemfirePersistentEntity<?> persistentEntity, GemfirePersistentProperty persistentProperty, Annotation luceneIndexAnnotation, BeanDefinitionRegistry registry)
LuceneIndex
for the GemfirePersistentProperty
on the GemfirePersistentEntity
using the Annotation
meta-data to define the Index.enableIndexingAttributes
- AnnotationAttributes
containing meta-data
for the EnableIndexing
annotation.persistentEntity
- GemfirePersistentEntity
containing the GemfirePersistentProperty
to be indexed.persistentProperty
- GemfirePersistentProperty
for which the LuceneIndex
will be created.luceneIndexAnnotation
- LuceneIndexed
Annotation
.registry
- BeanDefinitionRegistry
used to register the LuceneIndex
bean definition.Annotation
,
BeanDefinitionBuilder
,
BeanDefinitionRegistry
,
GemfirePersistentEntity
,
GemfirePersistentProperty
,
LuceneIndexed
Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.