public class KeyValueRepositoryFactoryBean<T extends Repository<S,ID>,S,ID extends Serializable> extends RepositoryFactoryBeanSupport<T,S,ID>
FactoryBean
to create KeyValueRepository
.Constructor and Description |
---|
KeyValueRepositoryFactoryBean() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
protected RepositoryFactorySupport |
createRepositoryFactory() |
protected KeyValueRepositoryFactory |
createRepositoryFactory(KeyValueOperations operations,
Class<? extends AbstractQueryCreator<?,?>> queryCreator,
Class<? extends RepositoryQuery> repositoryQueryType)
Create the repository factory to be used to create repositories.
|
void |
setKeyValueOperations(KeyValueOperations operations)
Configures the
KeyValueOperations to be used for the repositories. |
void |
setMappingContext(MappingContext<?,?> mappingContext) |
void |
setQueryCreator(Class<? extends AbstractQueryCreator<?,?>> queryCreator)
Configures the
QueryCreatorType to be used. |
void |
setQueryType(Class<? extends RepositoryQuery> repositoryQueryType)
Configures the
RepositoryQuery type to be created. |
getEntityInformation, getObject, getObjectType, getPersistentEntity, getQueryMethods, getRepositoryInformation, isSingleton, setBeanClassLoader, setBeanFactory, setCustomImplementation, setEvaluationContextProvider, setLazyInit, setNamedQueries, setQueryLookupStrategyKey, setRepositoryBaseClass, setRepositoryInterface
public void setKeyValueOperations(KeyValueOperations operations)
KeyValueOperations
to be used for the repositories.operations
- must not be null.public void setMappingContext(MappingContext<?,?> mappingContext)
setMappingContext
in class RepositoryFactoryBeanSupport<T extends Repository<S,ID>,S,ID extends Serializable>
public void setQueryCreator(Class<? extends AbstractQueryCreator<?,?>> queryCreator)
QueryCreatorType
to be used.queryCreator
- must not be null.public void setQueryType(Class<? extends RepositoryQuery> repositoryQueryType)
RepositoryQuery
type to be created.repositoryQueryType
- must not be null.protected final RepositoryFactorySupport createRepositoryFactory()
createRepositoryFactory
in class RepositoryFactoryBeanSupport<T extends Repository<S,ID>,S,ID extends Serializable>
protected KeyValueRepositoryFactory createRepositoryFactory(KeyValueOperations operations, Class<? extends AbstractQueryCreator<?,?>> queryCreator, Class<? extends RepositoryQuery> repositoryQueryType)
operations
- will never be null.queryCreator
- will never be null.repositoryQueryType
- will never be null.public void afterPropertiesSet()
afterPropertiesSet
in interface InitializingBean
afterPropertiesSet
in class RepositoryFactoryBeanSupport<T extends Repository<S,ID>,S,ID extends Serializable>
Copyright © 2011-2015–2017 Pivotal Software, Inc.. All rights reserved.