@Target(value=TYPE) @Retention(value=RUNTIME) @Documented @Inherited @Import(value=GemfireRepositoriesRegistrar.class) public @interface EnableGemfireRepositories
Repositories.Repository| Modifier and Type | Optional Element and Description |
|---|---|
Class<?>[] |
basePackageClasses
Type-safe alternative to
basePackages() to specify the packages to scan for annotated components. |
String[] |
basePackages
Base packages to scan for annotated components.
|
ComponentScan.Filter[] |
excludeFilters
Specifies which types are not eligible for component scanning.
|
ComponentScan.Filter[] |
includeFilters
Specifies which types are eligible for component scanning.
|
String |
mappingContextRef
Configures the name of the
GemfireMappingContext bean definition to use when creating Repositories
discovered through this annotation. |
String |
namedQueriesLocation
Configures the
location of where to find the Spring Data named queries properties file. |
QueryLookupStrategy.Key |
queryLookupStrategy
Returns the
QueryLookupStrategy.Key of the QueryLookupStrategy used to lookup queries for query methods. |
Class<?> |
repositoryBaseClass
Configure the
Repository base class used to create Repository proxies
for this particular configuration. |
Class<?> |
repositoryFactoryBeanClass
|
String |
repositoryImplementationPostfix
Returns the
postfix used when looking up custom Repository implementations. |
String[] |
value
Alias for the
basePackages() attribute. |
public abstract String[] value
basePackages() attribute.
Allows for more concise annotation declarations, e.g. @EnableGemfireRepositories("org.my.pkg")
instead of @EnableGemfireRepositories(basePackages="org.my.pkg").String array specifying the packages to search for Apache Geode Repositories.basePackages()public abstract String[] basePackages
value() is an alias for (and mutually exclusive with)
this attribute.
Use basePackageClasses() for a type-safe alternative to String-based package names.String array specifying the packages to search for Apache Geode Repositories.value()public abstract Class<?>[] basePackageClasses
basePackages() to specify the packages to scan for annotated components.
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 Apache Geode Repositories.public abstract ComponentScan.Filter[] includeFilters
basePackages() to everything in the base packages that matches the given filter or filters.public abstract ComponentScan.Filter[] excludeFilters
public abstract String mappingContextRef
GemfireMappingContext bean definition to use when creating Repositories
discovered through this annotation. If not configured a default GemfireMappingContext will be created.bean name of the MappingContext used by a Repository to map entities to
the underlying data store (i.e. Apache Geode).public abstract String namedQueriesLocation
location of where to find the Spring Data named queries properties file.
Defaults to META-INFO/gemfire-named-queries.properties.String indicating the location of the named queries properties file.public abstract QueryLookupStrategy.Key queryLookupStrategy
QueryLookupStrategy.Key of the QueryLookupStrategy used to lookup queries for query methods.
Defaults to QueryLookupStrategy.Key.CREATE_IF_NOT_FOUND.QueryLookupStrategy.Key used to determine the query lookup and creation strategy.QueryLookupStrategy.Keypublic abstract Class<?> repositoryBaseClass
Repository base class used to create Repository proxies
for this particular configuration.Repository base class used to create Repository proxies.SimpleGemfireRepositorypublic abstract Class<?> repositoryFactoryBeanClass
FactoryBean Class used to create each Repository instance.
Defaults to GemfireRepositoryFactoryBean.FactoryBean Class used to create each Repository instance.GemfireRepositoryFactoryBeanpublic abstract String repositoryImplementationPostfix
postfix used when looking up custom Repository implementations.
Defaults to Impl.
For example, for a Repository named PersonRepository, the corresponding implementation class
will be looked up scanning for PersonRepositoryImpl.String indicating the postfix to append to the Repository interface name
when looking up the custom Repository implementing class.Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.