Interface CdiRepositoryConfiguration
public interface CdiRepositoryConfiguration
Interface containing the configurable options for the Spring Data repository subsystem using CDI.
- Author:
- Mark Paluch, Fabian Henniges, Ariel Carrera
-
Method Summary
Modifier and TypeMethodDescriptionReturn theQueryMethodEvaluationContextProvider
to use.default Optional<NamedQueries>
Return theNamedQueries
to use.default List<QueryCreationListener<?>>
Returns the list ofQueryCreationListener
to be used during repository proxy creation.default Optional<QueryLookupStrategy.Key>
Return theQueryLookupStrategy.Key
to lookup queries.Return therepository base class
to use.default String
Returns the configured postfix to be used for looking up custom implementation classes.default List<RepositoryProxyPostProcessor>
Returns the list ofRepositoryProxyPostProcessor
to be used during repository proxy creation.
-
Method Details
-
getEvaluationContextProvider
Return theQueryMethodEvaluationContextProvider
to use. Can beOptional.empty()
.- Returns:
- the optional
QueryMethodEvaluationContextProvider
base to use, can beOptional.empty()
, must not be null. - Since:
- 2.1
-
getNamedQueries
Return theNamedQueries
to use. Can beOptional.empty()
.- Returns:
- the optional named queries to use, can be
Optional.empty()
, must not be null. - Since:
- 2.1
-
getQueryLookupStrategy
Return theQueryLookupStrategy.Key
to lookup queries. Can beOptional.empty()
.- Returns:
- the lookup strategy to use, can be
Optional.empty()
, must not be null. - Since:
- 2.1
-
getRepositoryBeanClass
Return therepository base class
to use. Can beOptional.empty()
.- Returns:
- the optional repository base to use, can be
Optional.empty()
, must not be null. - Since:
- 2.1
-
getRepositoryImplementationPostfix
Returns the configured postfix to be used for looking up custom implementation classes.- Returns:
- the postfix to use, must not be null.
-
getRepositoryProxyPostProcessors
Returns the list ofRepositoryProxyPostProcessor
to be used during repository proxy creation. Can beCollections.emptyList()
.- Returns:
- the list of repository proxy post processors to use, can be
Collections.emptyList()
, must not be null. - Since:
- 2.2
-
getQueryCreationListeners
Returns the list ofQueryCreationListener
to be used during repository proxy creation. Can beCollections.emptyList()
.- Returns:
- the list query creation listeners to use, can be
Collections.emptyList()
, must not be null. - Since:
- 2.2
-