Class ReactivePersistenceExceptionTranslationPostProcessor
java.lang.Object
org.springframework.aop.framework.ProxyConfig
org.springframework.aop.framework.ProxyProcessorSupport
org.springframework.aop.framework.AbstractAdvisingBeanPostProcessor
org.springframework.aop.framework.autoproxy.AbstractBeanFactoryAwareAdvisingPostProcessor
org.springframework.data.neo4j.repository.support.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:
-
Field Summary
Fields inherited from class AbstractBeanFactoryAwareAdvisingPostProcessor
beanFactoryFields inherited from class AbstractAdvisingBeanPostProcessor
advisor, beforeExistingAdvisorsFields inherited from interface Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsConstructorDescriptionReactivePersistenceExceptionTranslationPostProcessor(Class<? extends Annotation> repositoryAnnotationType) -
Method Summary
Methods inherited from class AbstractBeanFactoryAwareAdvisingPostProcessor
isEligible, prepareProxyFactoryMethods inherited from class AbstractAdvisingBeanPostProcessor
customizeProxyFactory, determineBeanType, isEligible, postProcessAfterInitialization, setBeforeExistingAdvisorsMethods inherited from class ProxyProcessorSupport
evaluateProxyInterfaces, getOrder, getProxyClassLoader, isConfigurationCallbackInterface, isInternalLanguageInterface, setBeanClassLoader, setOrder, setProxyClassLoaderMethods inherited from class ProxyConfig
copyDefault, copyFrom, isExposeProxy, isFrozen, isOpaque, isOptimize, isProxyTargetClass, setExposeProxy, setFrozen, setOpaque, setOptimize, setProxyTargetClass, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface BeanPostProcessor
postProcessBeforeInitializationMethods inherited from interface InstantiationAwareBeanPostProcessor
postProcessAfterInstantiation, postProcessBeforeInstantiation, postProcessPropertiesMethods inherited from interface SmartInstantiationAwareBeanPostProcessor
determineCandidateConstructors, getEarlyBeanReference, predictBeanType
-
Constructor Details
-
ReactivePersistenceExceptionTranslationPostProcessor
public ReactivePersistenceExceptionTranslationPostProcessor() -
ReactivePersistenceExceptionTranslationPostProcessor
public ReactivePersistenceExceptionTranslationPostProcessor(Class<? extends Annotation> repositoryAnnotationType)
-
-
Method Details
-
setBeanFactory
- Specified by:
setBeanFactoryin interfaceBeanFactoryAware- Overrides:
setBeanFactoryin classAbstractBeanFactoryAwareAdvisingPostProcessor
-