class RedisBeanDefinitionsPostProcessor extends java.lang.Object implements BeanDefinitionRegistryPostProcessor, PriorityOrdered
Registers the redis pool and service bean definitions for the default connection and every
configured named connection, replacing the registration the redis plugin previously performed
through the doWithSpring() bean DSL. The pool beans need a destroy method and
per-connection pool-config property values, which the
org.springframework.beans.factory.BeanRegistry API cannot express, so the definitions
are contributed by this post-processor instead. An existing definition for a bean name wins,
preserving the ability of the application (or another plugin) to override the beans.
Runs as a PriorityOrdered post-processor with highest precedence so the redis
definitions are registered before Spring Boot's configuration-class post-processor evaluates
auto-configuration conditions — the same visibility the doWithSpring() registration had.
Not statically compiled: the redis configuration is an untyped map traversed dynamically.
| Constructor and description |
|---|
RedisBeanDefinitionsPostProcessor(java.util.Map redisConfigMap) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
int |
getOrder() |
|
void |
postProcessBeanDefinitionRegistry(BeanDefinitionRegistry registry) |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#equals(java.lang.Object), java.lang.Object#getClass(), java.lang.Object#hashCode(), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#toString(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int) |