Annotation Interface EnableEntityDefinedRegions
@Target(TYPE)
@Retention(RUNTIME)
@Inherited
@Documented
@Import(IndexConfiguration.class)
public @interface EnableEntityDefinedRegions
The
EnableEntityDefinedRegions
annotation marks a Spring @Configuration
application
annotated class to enable the creation of GemFire/Geode Regions
based on
the application persistent entities.- Since:
- 1.9.0
- See Also:
-
Documented
Inherited
Retention
Target
Region
RegionShortcut
ClientRegionShortcut
Pool
ComponentScan
ComponentScan.Filter
Import
AliasFor
PeerRegionFactoryBean
ClientRegionFactoryBean
EntityDefinedRegionsConfiguration
IndexConfiguration
CacheTypeAwareRegionFactoryBean
ClientRegion
LocalRegion
PartitionRegion
Region
ReplicateRegion
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionClass<?>[]
Type-safe alternative to thebasePackages()
attribute for specifying the packages to scan for@Region
annotated application persistent entities.String[]
Base packages to scan for@Region
annotated application persistent entities.org.apache.geode.cache.client.ClientRegionShortcut
When this annotation is applied to a cache client application, the clientRegionShortcut attribute indicates the default data policy applied to clientRegions
where the persistent entities are only annotated with the genericRegion
mapping annotation, or the non-data policy specific mapping annotation.org.springframework.context.annotation.ComponentScan.Filter[]
Specifies which types are not eligible for component scanning.org.springframework.context.annotation.ComponentScan.Filter[]
Specifies which types are eligible for component scanning.When this annotation is applied to a cache client application, the poolName attribute refers to the default name of the GemFire/GeodePool
assigned to clientRegion(s)
.org.apache.geode.cache.RegionShortcut
When this annotation is applied to a peer cache application, the serverRegionShortcut attribute indicates the default data policy applied to serverRegions
where the persistent entities are only annotated with the genericRegion
mapping annotation, or the non-data policy specific mapping annotation.boolean
Determines whether the createdRegion
will have strongly-typed key and value constraints based on the ID andClass
type of application persistent entity.String[]
Alias forbasePackages()
attribute.
-
Element Details
-
value
Alias forbasePackages()
attribute.- Returns:
- a
String
array specifying the packages to search for application persistent entities. - See Also:
- Default:
- {}
-
basePackages
Base packages to scan for@Region
annotated application persistent entities. Thevalue()
attribute is an alias for this attribute. UsebasePackageClasses()
for a type-safe alternative to String-based package names. Use the spring.data.gemfire.entities.base-packages property in application.properties.- Returns:
- a
String
array specifying the packages to search for application persistent entities. - See Also:
- Default:
- {}
-
basePackageClasses
Class<?>[] basePackageClassesType-safe alternative to thebasePackages()
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.- Returns:
- an array of
classes
used to determine the packages to scan for application persistent entities.
- Default:
- {}
-
excludeFilters
org.springframework.context.annotation.ComponentScan.Filter[] excludeFiltersSpecifies which types are not eligible for component scanning.- Returns:
- an array of
Filters
used to specify application persistent entities to be excluded during the component scan.
- Default:
- {}
-
includeFilters
org.springframework.context.annotation.ComponentScan.Filter[] includeFiltersSpecifies which types are eligible for component scanning. Further narrows the set of candidate components from everything inbasePackages()
orbasePackageClasses()
to everything in the base packages that matches the given filter or filters.- Returns:
- an array
ComponentScan.Filter
of Filters used to specify application persistent entities to be included during the component scan.
- Default:
- {}
-
clientRegionShortcut
org.apache.geode.cache.client.ClientRegionShortcut clientRegionShortcutWhen this annotation is applied to a cache client application, the clientRegionShortcut attribute indicates the default data policy applied to clientRegions
where the persistent entities are only annotated with the genericRegion
mapping annotation, or the non-data policy specific mapping annotation. Defaults toClientRegionShortcut.PROXY
.- Default:
- PROXY
-
poolName
String poolNameWhen this annotation is applied to a cache client application, the poolName attribute refers to the default name of the GemFire/GeodePool
assigned to clientRegion(s)
. This value can be overridden by annotating entities with theClientRegion
annotation. Defaults to DEFAULT.- Default:
- "DEFAULT"
-
serverRegionShortcut
org.apache.geode.cache.RegionShortcut serverRegionShortcutWhen this annotation is applied to a peer cache application, the serverRegionShortcut attribute indicates the default data policy applied to serverRegions
where the persistent entities are only annotated with the genericRegion
mapping annotation, or the non-data policy specific mapping annotation. Defaults toRegionShortcut.PARTITION
.- Default:
- PARTITION
-
strict
boolean strictDetermines whether the createdRegion
will have strongly-typed key and value constraints based on the ID andClass
type of application persistent entity. Defaults to false.- Default:
- false
-