public class PersistenceExceptionTranslationAdvisor extends AbstractPointcutAdvisor
DataAccessException,
PersistenceExceptionTranslator,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
private PersistenceExceptionTranslationInterceptor |
advice |
private AnnotationMatchingPointcut |
pointcut |
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE| Constructor and Description |
|---|
PersistenceExceptionTranslationAdvisor(ListableBeanFactory beanFactory,
java.lang.Class<? extends java.lang.annotation.Annotation> repositoryAnnotationType)
Create a new PersistenceExceptionTranslationAdvisor.
|
PersistenceExceptionTranslationAdvisor(PersistenceExceptionTranslator persistenceExceptionTranslator,
java.lang.Class<? extends java.lang.annotation.Annotation> repositoryAnnotationType)
Create a new PersistenceExceptionTranslationAdvisor.
|
| Modifier and Type | Method and Description |
|---|---|
Advice |
getAdvice()
Return the advice part of this aspect.
|
Pointcut |
getPointcut()
Get the Pointcut that drives this advisor.
|
equals, getOrder, hashCode, isPerInstance, setOrderprivate final PersistenceExceptionTranslationInterceptor advice
private final AnnotationMatchingPointcut pointcut
public PersistenceExceptionTranslationAdvisor(PersistenceExceptionTranslator persistenceExceptionTranslator, java.lang.Class<? extends java.lang.annotation.Annotation> repositoryAnnotationType)
persistenceExceptionTranslator - the PersistenceExceptionTranslator to userepositoryAnnotationType - the annotation type to check forPersistenceExceptionTranslationAdvisor(ListableBeanFactory beanFactory, java.lang.Class<? extends java.lang.annotation.Annotation> repositoryAnnotationType)
beanFactory - the ListableBeanFactory to obtaining all
PersistenceExceptionTranslators fromrepositoryAnnotationType - the annotation type to check forpublic Advice getAdvice()
Advisororg.aopalliance.intercept.MethodInterceptor,
BeforeAdvice,
ThrowsAdvice,
AfterReturningAdvicepublic Pointcut getPointcut()
PointcutAdvisor