@Target(value=TYPE) @Retention(value=RUNTIME) @Documented @Inherited @Import(value=ArangoRepositoriesRegistrar.class) public @interface EnableArangoRepositories
If no base package is configured through either value()
,
basePackages()
or basePackageClasses()
it will trigger scanning
of the package of annotated class.
Modifier and Type | Optional Element and Description |
---|---|
Class<?>[] |
basePackageClasses
Type-safe alternative to
basePackages() for specifying 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 |
namedQueriesLocation
Configures the location of the Spring Data named queries properties file.
|
QueryLookupStrategy.Key |
queryLookupStrategy
Returns the key of the
QueryLookupStrategy that should be used to lookup queries for query methods. |
Class<?> |
repositoryFactoryBeanClass
Returns the
FactoryBean class to be used for each repository
instance. |
String |
repositoryImplementationPostfix
Returns the postfix to be used for custom repository implementations.
|
String[] |
value
Alias for
basePackages() . |
@AliasFor(value="basePackages") public abstract String[] value
basePackages()
.
Intended to be used instead of basePackages()
when no other attributes
are needed — for example:
@EnableArangoRepositories("org.my.project")
instead of
@EnableArangoRepositories(basePackages = "org.my.project")
.
@AliasFor(value="value") public abstract String[] basePackages
Use basePackageClasses()
for a type-safe alternative to package names.
public abstract Class<?>[] basePackageClasses
basePackages()
for specifying the packages to
scan for annotated components.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 repositoryImplementationPostfix
public abstract Class<?> repositoryFactoryBeanClass
FactoryBean
class to be used for each repository
instance. Defaults to ArangoRepositoryFactoryBean
.public abstract String namedQueriesLocation
META-INF/arango-named-queries.properties
.public abstract QueryLookupStrategy.Key queryLookupStrategy
QueryLookupStrategy
that should be used to lookup queries for query methods.
Currently only the default QueryLookupStrategy.Key.CREATE_IF_NOT_FOUND
is supported.Copyright © 2017–2021 ArangoDB GmbH. All rights reserved.