Spring Data for VMware GemFire
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:
-
DocumentedInheritedRetentionTargetRegionRegionShortcutClientRegionShortcutPoolComponentScanComponentScan.FilterImportAliasForPeerRegionFactoryBeanClientRegionFactoryBeanEntityDefinedRegionsConfigurationIndexConfigurationCacheTypeAwareRegionFactoryBeanClientRegionLocalRegionPartitionRegionRegionReplicateRegion
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionClass<?>[]Type-safe alternative to thebasePackages()attribute for specifying the packages to scan for@Regionannotated application persistent entities.String[]Base packages to scan for@Regionannotated application persistent entities.org.apache.geode.cache.client.ClientRegionShortcutWhen this annotation is applied to a cache client application, the clientRegionShortcut attribute indicates the default data policy applied to clientRegionswhere the persistent entities are only annotated with the genericRegionmapping 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/GeodePoolassigned to clientRegion(s).org.apache.geode.cache.RegionShortcutWhen this annotation is applied to a peer cache application, the serverRegionShortcut attribute indicates the default data policy applied to serverRegionswhere the persistent entities are only annotated with the genericRegionmapping annotation, or the non-data policy specific mapping annotation.booleanDetermines whether the createdRegionwill have strongly-typed key and value constraints based on the ID andClasstype of application persistent entity.String[]Alias forbasePackages()attribute.
-
Element Details
-
value
Alias forbasePackages()attribute.- Returns:
- a
Stringarray specifying the packages to search for application persistent entities. - See Also:
- Default:
- {}
-
basePackages
Base packages to scan for@Regionannotated 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
Stringarray 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@Regionannotated 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
classesused 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
Filtersused 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.Filterof 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 clientRegionswhere the persistent entities are only annotated with the genericRegionmapping 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/GeodePoolassigned to clientRegion(s). This value can be overridden by annotating entities with theClientRegionannotation. 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 serverRegionswhere the persistent entities are only annotated with the genericRegionmapping annotation, or the non-data policy specific mapping annotation. Defaults toRegionShortcut.PARTITION.- Default:
- PARTITION
-
strict
boolean strictDetermines whether the createdRegionwill have strongly-typed key and value constraints based on the ID andClasstype of application persistent entity. Defaults to false.- Default:
- false
-