Annotation Interface EnableArangoRepositories
@Target(TYPE)
@Retention(RUNTIME)
@Documented
@Inherited
@Import(ArangoRepositoriesRegistrar.class)
public @interface EnableArangoRepositories
Annotation to activate ArangoDB repositories.
If no base package is configured through either value()
,
basePackages()
or basePackageClasses()
it will trigger scanning
of the package of annotated class.
- Author:
- Audrius Malele, Mark McCormick, Mark Vollmary, Christian Lechner
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionClass<?>[]
Type-safe alternative tobasePackages()
for specifying the packages to scan for annotated components.String[]
Base packages to scan for annotated components.Specifies which types are not eligible for component scanning.Specifies which types are eligible for component scanning.Configures the location of the Spring Data named queries properties file.Returns the key of theQueryLookupStrategy
that should be used to lookup queries for query methods.Class<?>
Returns theFactoryBean
class to be used for each repository instance.Returns the postfix to be used for custom repository implementations.String[]
Alias forbasePackages()
.
-
Element Details
-
value
Alias forbasePackages()
.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")
.- Default:
- {}
-
basePackages
Base packages to scan for annotated components.Use
basePackageClasses()
for a type-safe alternative to package names.- Default:
- {}
-
basePackageClasses
Class<?>[] basePackageClassesType-safe alternative tobasePackages()
for specifying the packages to scan for annotated components.- Default:
- {}
-
includeFilters
ComponentScan.Filter[] includeFiltersSpecifies which types are eligible for component scanning. Further narrows the set of candidate components from everything inbasePackages()
to everything in the base packages that matches the given filter or filters.- Default:
- {}
-
excludeFilters
ComponentScan.Filter[] excludeFiltersSpecifies which types are not eligible for component scanning.- Default:
- {}
-
repositoryImplementationPostfix
String repositoryImplementationPostfixReturns the postfix to be used for custom repository implementations. Defaults to Impl.- Default:
- "Impl"
-
repositoryFactoryBeanClass
Class<?> repositoryFactoryBeanClassReturns theFactoryBean
class to be used for each repository instance. Defaults toArangoRepositoryFactoryBean
.- Default:
- com.arangodb.springframework.repository.ArangoRepositoryFactoryBean.class
-
namedQueriesLocation
String namedQueriesLocationConfigures the location of the Spring Data named queries properties file. Defaults toMETA-INF/arango-named-queries.properties
.- Default:
- ""
-
queryLookupStrategy
QueryLookupStrategy.Key queryLookupStrategyReturns the key of theQueryLookupStrategy
that should be used to lookup queries for query methods. Currently only the defaultQueryLookupStrategy.Key.CREATE_IF_NOT_FOUND
is supported.- Default:
- CREATE_IF_NOT_FOUND
-