@Target(value=TYPE) @Retention(value=RUNTIME) @Inherited @Documented @Import(value=IndexConfiguration.class) public @interface EnableEntityDefinedRegions
EnableEntityDefinedRegions
annotation marks a Spring @Configuration
application
annotated class to enable the creation of GemFire/Geode Regions
based on
the application persistent entities.Documented
,
Inherited
,
Retention
,
Target
,
Region
,
RegionShortcut
,
ClientRegionShortcut
,
Pool
,
ComponentScan
,
ComponentScan.Filter
,
Import
,
AliasFor
,
PeerRegionFactoryBean
,
ClientRegionFactoryBean
,
EntityDefinedRegionsConfiguration
,
IndexConfiguration
,
CacheTypeAwareRegionFactoryBean
,
ClientRegion
,
LocalRegion
,
PartitionRegion
,
Region
,
ReplicateRegion
Modifier and Type | Optional Element and Description |
---|---|
Class<?>[] |
basePackageClasses
Type-safe alternative to the
basePackages() attribute for specifying the packages to scan for
@Region annotated application persistent entities. |
String[] |
basePackages
Base packages to scan for
@Region annotated
application persistent entities. |
org.apache.geode.cache.client.ClientRegionShortcut |
clientRegionShortcut
When this annotation is applied to a cache client application, the clientRegionShortcut attribute
indicates the default data policy applied to client
Regions where the persistent entities
are only annotated with the generic Region
mapping annotation, or the non-data policy specific mapping annotation. |
ComponentScan.Filter[] |
excludeFilters
Specifies which types are not eligible for component scanning.
|
ComponentScan.Filter[] |
includeFilters
Specifies which types are eligible for component scanning.
|
String |
poolName
When this annotation is applied to a cache client application, the poolName attribute refers to
the default name of the GemFire/Geode
Pool assigned to client Region(s) . |
org.apache.geode.cache.RegionShortcut |
serverRegionShortcut
When this annotation is applied to a peer cache application, the serverRegionShortcut attribute
indicates the default data policy applied to server
Regions where the persistent entities
are only annotated with the generic Region
mapping annotation, or the non-data policy specific mapping annotation. |
boolean |
strict
Determines whether the created
Region will have strongly-typed key and value constraints
based on the ID and Class type of application persistent entity. |
String[] |
value
Alias for
basePackages() attribute. |
@AliasFor(attribute="basePackages") public abstract String[] value
basePackages()
attribute.String
array specifying the packages to search for application persistent entities.basePackages()
@AliasFor(attribute="value") public abstract String[] basePackages
@Region
annotated
application persistent entities.
The value()
attribute is an alias for this attribute.
Use basePackageClasses()
for a type-safe alternative to String-based package names.
Use the spring.data.gemfire.entities.base-packages property in application.properties.String
array specifying the packages to search for application persistent entities.value()
public abstract Class<?>[] basePackageClasses
basePackages()
attribute for specifying the packages to scan for
@Region
annotated application persistent entities.
The package of each class specified will be scanned.
Consider creating a special no-op marker class or interface in each package that serves no other purpose
than being referenced by this attribute.classes
used to determine the packages to scan
for application persistent entities.public abstract ComponentScan.Filter[] excludeFilters
Filters
used to
specify application persistent entities to be excluded during the component scan.public abstract ComponentScan.Filter[] includeFilters
basePackages()
or basePackageClasses()
to everything in the base packages that matches the given filter or filters.ComponentScan.Filter
of Filters used to specify application persistent entities
to be included during the component scan.public abstract org.apache.geode.cache.client.ClientRegionShortcut clientRegionShortcut
Regions
where the persistent entities
are only annotated with the generic Region
mapping annotation, or the non-data policy specific mapping annotation.
Defaults to ClientRegionShortcut.PROXY
.public abstract String poolName
Pool
assigned to client Region(s)
.
This value can be overridden by annotating entities with the ClientRegion
annotation.
Defaults to DEFAULT.public abstract org.apache.geode.cache.RegionShortcut serverRegionShortcut
Regions
where the persistent entities
are only annotated with the generic Region
mapping annotation, or the non-data policy specific mapping annotation.
Defaults to RegionShortcut.PARTITION
.public abstract boolean strict
Region
will have strongly-typed key and value constraints
based on the ID and Class
type of application persistent entity.
Defaults to false.Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.