Class ReactivePersistenceExceptionTranslationPostProcessor

All Implemented Interfaces:
Serializable, AopInfrastructureBean, Aware, BeanClassLoaderAware, BeanFactoryAware, BeanPostProcessor, InstantiationAwareBeanPostProcessor, SmartInstantiationAwareBeanPostProcessor, Ordered

@API(status=STABLE, since="6.0") public final class ReactivePersistenceExceptionTranslationPostProcessor extends AbstractBeanFactoryAwareAdvisingPostProcessor
Bean post-processor that automatically applies persistence exception translation to all methods returning either Mono or Flux of any bean marked with Spring's @Repository annotation, adding a corresponding AbstractPointcutAdvisor to the exposed proxy (either an existing AOP proxy or a newly generated proxy that implements all of the target's interfaces).

That proxy will modify the reactive types by the matched method and inject an exception translation into the reactive flow.

This class can be declared as a standard bean if you run a lot of custom repositories in which you use either the ReactiveNeo4jTemplate or the ReactiveNeo4jClient.

Since:
6.0
Author:
Michael J. Simons
See Also: