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, RepositoryFactoryInformation<S,ID>

public class RedisRepositoryFactoryBean<T extends Repository<S,ID>,S,ID> extends org.springframework.data.keyvalue.repository.support.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
  • Constructor Details

    • RedisRepositoryFactoryBean

      public RedisRepositoryFactoryBean(Class<? extends T> repositoryInterface)
      Creates a new RedisRepositoryFactoryBean for the given repository interface.
      Parameters:
      repositoryInterface - must not be null.
  • Method Details

    • createRepositoryFactory

      protected RedisRepositoryFactory createRepositoryFactory(org.springframework.data.keyvalue.core.KeyValueOperations operations, Class<? extends AbstractQueryCreator<?,?>> queryCreator, Class<? extends RepositoryQuery> repositoryQueryType)
      Overrides:
      createRepositoryFactory in class org.springframework.data.keyvalue.repository.support.KeyValueRepositoryFactoryBean<T extends Repository<S,ID>,S,ID>