Class RedisRepositoryBean<T>

java.lang.Object
org.springframework.data.repository.cdi.CdiRepositoryBean<T>
org.springframework.data.redis.repository.cdi.RedisRepositoryBean<T>
All Implemented Interfaces:
jakarta.enterprise.context.spi.Contextual<T>, jakarta.enterprise.inject.spi.Bean<T>, jakarta.enterprise.inject.spi.BeanAttributes<T>, jakarta.enterprise.inject.spi.PassivationCapable

public class RedisRepositoryBean<T> extends org.springframework.data.repository.cdi.CdiRepositoryBean<T>
CdiRepositoryBean to create Redis repository instances.
Author:
Mark Paluch, Christoph Strobl
  • Constructor Summary

    Constructors
    Constructor
    Description
    RedisRepositoryBean(jakarta.enterprise.inject.spi.Bean<org.springframework.data.keyvalue.core.KeyValueOperations> keyValueTemplate, Set<Annotation> qualifiers, Class<T> repositoryType, jakarta.enterprise.inject.spi.BeanManager beanManager, org.springframework.data.repository.config.CustomRepositoryImplementationDetector detector)
    Creates a new CdiRepositoryBean.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected T
    create(jakarta.enterprise.context.spi.CreationalContext<T> creationalContext, Class<T> repositoryType)
     

    Methods inherited from class org.springframework.data.repository.cdi.CdiRepositoryBean

    applyConfiguration, applyConfiguration, create, create, create, destroy, getBeanClass, getDependencyInstance, getDependencyInstance, getId, getInjectionPoints, getName, getQualifiers, getRepositoryFragments, getScope, getStereotypes, getTypes, initialize, isAlternative, isNullable, lookupConfiguration, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • RedisRepositoryBean

      public RedisRepositoryBean(jakarta.enterprise.inject.spi.Bean<org.springframework.data.keyvalue.core.KeyValueOperations> keyValueTemplate, Set<Annotation> qualifiers, Class<T> repositoryType, jakarta.enterprise.inject.spi.BeanManager beanManager, @Nullable org.springframework.data.repository.config.CustomRepositoryImplementationDetector detector)
      Creates a new CdiRepositoryBean.
      Parameters:
      keyValueTemplate - must not be null.
      qualifiers - must not be null.
      repositoryType - must not be null.
      beanManager - must not be null.
      detector - detector for the custom Repository implementations CustomRepositoryImplementationDetector, can be null.
  • Method Details

    • create

      protected T create(jakarta.enterprise.context.spi.CreationalContext<T> creationalContext, Class<T> repositoryType)
      Specified by:
      create in class org.springframework.data.repository.cdi.CdiRepositoryBean<T>