Class RedisRepositoryFactoryBean<T extends Repository<S,ID>, S, ID>
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.data.redis.repository.support.RedisRepositoryFactoryBean<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, EnvironmentAware, RepositoryFactoryInformation<S,ID>
public class RedisRepositoryFactoryBean<T extends Repository<S,ID>, S, ID>
extends KeyValueRepositoryFactoryBean<T,S,ID>
Adapter for Springs
FactoryBean interface to allow easy setup of RedisRepositoryFactory via Spring
configuration.- Since:
- 1.7
- Author:
- Christoph Strobl, Oliver Gierke, Mark Paluch
-
Nested Class Summary
Nested classes/interfaces inherited from class RepositoryFactoryBeanSupport
RepositoryFactoryBeanSupport.FragmentCreationContext, RepositoryFactoryBeanSupport.RepositoryFragmentsFunction -
Field Summary
Fields inherited from interface FactoryBean
OBJECT_TYPE_ATTRIBUTE -
Constructor Summary
ConstructorsConstructorDescriptionRedisRepositoryFactoryBean(Class<? extends T> repositoryInterface) Creates a newRedisRepositoryFactoryBeanfor the given repository interface. -
Method Summary
Modifier and TypeMethodDescriptionprotected RedisRepositoryFactorycreateRepositoryFactory(KeyValueOperations operations, Class<? extends AbstractQueryCreator<?, ?>> queryCreator, Class<? extends RepositoryQuery> repositoryQueryType) Methods inherited from class KeyValueRepositoryFactoryBean
afterPropertiesSet, createRepositoryFactory, setKeyValueOperations, setMappingContext, setQueryCreator, setQueryTypeMethods inherited from class RepositoryFactoryBeanSupport
addRepositoryFactoryCustomizer, createDefaultEvaluationContextProvider, getEntityInformation, getObject, getObjectType, getPersistentEntity, getQueryMethods, getRepositoryFragmentsContributor, getRepositoryInformation, setApplicationEventPublisher, setBeanClassLoader, setBeanFactory, setCustomImplementation, setEnvironment, setEvaluationContextProvider, setExposeMetadata, setLazyInit, setNamedQueries, setQueryLookupStrategyKey, setRepositoryBaseClass, setRepositoryFragments, setRepositoryFragmentsFunctionMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface FactoryBean
isSingleton
-
Constructor Details
-
RedisRepositoryFactoryBean
Creates a newRedisRepositoryFactoryBeanfor the given repository interface.- Parameters:
repositoryInterface- must not be null.
-
-
Method Details
-
createRepositoryFactory
protected RedisRepositoryFactory createRepositoryFactory(KeyValueOperations operations, Class<? extends AbstractQueryCreator<?, ?>> queryCreator, Class<? extends RepositoryQuery> repositoryQueryType) - Overrides:
createRepositoryFactoryin classKeyValueRepositoryFactoryBean<T extends Repository<S,ID>, S, ID>
-