Class RedisKeyValueTemplateBean

java.lang.Object
org.springframework.data.redis.repository.cdi.CdiBean<org.springframework.data.keyvalue.core.KeyValueOperations>
org.springframework.data.redis.repository.cdi.RedisKeyValueTemplateBean
All Implemented Interfaces:
jakarta.enterprise.context.spi.Contextual<org.springframework.data.keyvalue.core.KeyValueOperations>, jakarta.enterprise.inject.spi.Bean<org.springframework.data.keyvalue.core.KeyValueOperations>, jakarta.enterprise.inject.spi.BeanAttributes<org.springframework.data.keyvalue.core.KeyValueOperations>, jakarta.enterprise.inject.spi.PassivationCapable

public class RedisKeyValueTemplateBean extends CdiBean<org.springframework.data.keyvalue.core.KeyValueOperations>
CdiBean to create RedisKeyValueTemplate instances.
Author:
Mark Paluch, Christoph Strobl
  • Constructor Details

    • RedisKeyValueTemplateBean

      public RedisKeyValueTemplateBean(jakarta.enterprise.inject.spi.Bean<RedisKeyValueAdapter> keyValueAdapter, Set<Annotation> qualifiers, jakarta.enterprise.inject.spi.BeanManager beanManager)
      Parameters:
      keyValueAdapter - must not be null.
      qualifiers - must not be null.
      beanManager - must not be null.
  • Method Details

    • create

      public org.springframework.data.keyvalue.core.KeyValueOperations create(jakarta.enterprise.context.spi.CreationalContext<org.springframework.data.keyvalue.core.KeyValueOperations> creationalContext)
    • destroy

      public void destroy(org.springframework.data.keyvalue.core.KeyValueOperations instance, jakarta.enterprise.context.spi.CreationalContext<org.springframework.data.keyvalue.core.KeyValueOperations> creationalContext)
      Specified by:
      destroy in interface jakarta.enterprise.context.spi.Contextual<org.springframework.data.keyvalue.core.KeyValueOperations>
      Overrides:
      destroy in class CdiBean<org.springframework.data.keyvalue.core.KeyValueOperations>