Class RedisKeyValueTemplateBean
java.lang.Object
org.springframework.data.redis.repository.cdi.CdiBean<KeyValueOperations>
org.springframework.data.redis.repository.cdi.RedisKeyValueTemplateBean
- All Implemented Interfaces:
jakarta.enterprise.context.spi.Contextual<KeyValueOperations>
,jakarta.enterprise.inject.spi.Bean<KeyValueOperations>
,jakarta.enterprise.inject.spi.BeanAttributes<KeyValueOperations>
,jakarta.enterprise.inject.spi.PassivationCapable
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 TypeMethodDescriptioncreate
(jakarta.enterprise.context.spi.CreationalContext<KeyValueOperations> creationalContext) void
destroy
(KeyValueOperations instance, jakarta.enterprise.context.spi.CreationalContext<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 KeyValueOperations create(jakarta.enterprise.context.spi.CreationalContext<KeyValueOperations> creationalContext) -
destroy
public void destroy(KeyValueOperations instance, jakarta.enterprise.context.spi.CreationalContext<KeyValueOperations> creationalContext) - Specified by:
destroy
in interfacejakarta.enterprise.context.spi.Contextual<KeyValueOperations>
- Overrides:
destroy
in classCdiBean<KeyValueOperations>
-