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
-
Field Summary
Fields inherited from class org.springframework.data.redis.repository.cdi.CdiBean
beanManager
-
Constructor Summary
ConstructorDescriptionRedisKeyValueTemplateBean
(jakarta.enterprise.inject.spi.Bean<RedisKeyValueAdapter> keyValueAdapter, Set<Annotation> qualifiers, jakarta.enterprise.inject.spi.BeanManager beanManager) Creates a newRedisKeyValueTemplateBean
. -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.data.keyvalue.core.KeyValueOperations
create
(jakarta.enterprise.context.spi.CreationalContext<org.springframework.data.keyvalue.core.KeyValueOperations> creationalContext) void
destroy
(org.springframework.data.keyvalue.core.KeyValueOperations instance, jakarta.enterprise.context.spi.CreationalContext<org.springframework.data.keyvalue.core.KeyValueOperations> creationalContext) Methods inherited from class org.springframework.data.redis.repository.cdi.CdiBean
getBeanClass, getDependencyInstance, getId, getInjectionPoints, getName, getQualifiers, getScope, getStereotypes, getTypes, initialize, isAlternative, isNullable, toString
-
Constructor Details
-
RedisKeyValueTemplateBean
public RedisKeyValueTemplateBean(jakarta.enterprise.inject.spi.Bean<RedisKeyValueAdapter> keyValueAdapter, Set<Annotation> qualifiers, jakarta.enterprise.inject.spi.BeanManager beanManager) Creates a newRedisKeyValueTemplateBean
.- 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)
-