@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 the GemFire/Geode Regions
based on
the application persistent entities.Region
,
ComponentScan
,
ComponentScan.Filter
,
Import
,
AliasFor
,
RegionFactoryBean
,
ClientRegionFactoryBean
,
EntityDefinedRegionsConfiguration
,
IndexConfiguration
,
GemFireCacheTypeAwareRegionFactoryBean
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. |
ComponentScan.Filter[] |
excludeFilters
Specifies which types are not eligible for component scanning.
|
ComponentScan.Filter[] |
includeFilters
Specifies which types are eligible for component scanning.
|
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.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 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–2017 Pivotal Software, Inc.. All rights reserved.