Class VaultRepositoryFactoryBean<T extends Repository<S,ID>,S,ID extends Serializable>
java.lang.Object
org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport<T,S,ID>
org.springframework.data.keyvalue.repository.support.KeyValueRepositoryFactoryBean<T,S,ID>
org.springframework.vault.repository.support.VaultRepositoryFactoryBean<T,S,ID>
- Type Parameters:
T
- The repository type.S
- The repository domain type.ID
- The repository id type.
- All Implemented Interfaces:
Aware
,BeanClassLoaderAware
,BeanFactoryAware
,FactoryBean<T>
,InitializingBean
,ApplicationEventPublisherAware
,RepositoryFactoryInformation<S,
ID>
public class VaultRepositoryFactoryBean<T extends Repository<S,ID>,S,ID extends Serializable>
extends KeyValueRepositoryFactoryBean<T,S,ID>
Adapter for Springs
FactoryBean
interface to allow easy setup of
VaultRepositoryFactory
via Spring configuration.- Since:
- 2.0
-
Field Summary
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE
-
Constructor Summary
ConstructorDescriptionVaultRepositoryFactoryBean
(Class<? extends T> repositoryInterface) Creates a newVaultRepositoryFactoryBean
for the given repository interface. -
Method Summary
Modifier and TypeMethodDescriptionprotected VaultRepositoryFactory
createRepositoryFactory
(KeyValueOperations operations, Class<? extends AbstractQueryCreator<?, ?>> queryCreator, Class<? extends RepositoryQuery> repositoryQueryType) Methods inherited from class org.springframework.data.keyvalue.repository.support.KeyValueRepositoryFactoryBean
afterPropertiesSet, createRepositoryFactory, setKeyValueOperations, setMappingContext, setQueryCreator, setQueryType
Methods inherited from class org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport
addRepositoryFactoryCustomizer, createDefaultQueryMethodEvaluationContextProvider, getEntityInformation, getObject, getObjectType, getPersistentEntity, getQueryMethods, getRepositoryInformation, isSingleton, setApplicationEventPublisher, setBeanClassLoader, setBeanFactory, setCustomImplementation, setEvaluationContextProvider, setLazyInit, setNamedQueries, setQueryLookupStrategyKey, setRepositoryBaseClass, setRepositoryFragments
-
Constructor Details
-
VaultRepositoryFactoryBean
Creates a newVaultRepositoryFactoryBean
for the given repository interface.- Parameters:
repositoryInterface
- must not be null.
-
-
Method Details
-
createRepositoryFactory
protected VaultRepositoryFactory createRepositoryFactory(KeyValueOperations operations, Class<? extends AbstractQueryCreator<?, ?>> queryCreator, Class<? extends RepositoryQuery> repositoryQueryType) - Overrides:
createRepositoryFactory
in classKeyValueRepositoryFactoryBean<T extends Repository<S,
ID>, S, ID extends Serializable>
-