|
|
|
@ -1,5 +1,5 @@ |
|
|
|
/* |
|
|
|
/* |
|
|
|
* Copyright 2002-2021 the original author or authors. |
|
|
|
* Copyright 2002-2023 the original author or authors. |
|
|
|
* |
|
|
|
* |
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
@ -63,13 +63,13 @@ public class TransactionalApplicationListenerMethodAdapter extends ApplicationLi |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public TransactionalApplicationListenerMethodAdapter(String beanName, Class<?> targetClass, Method method) { |
|
|
|
public TransactionalApplicationListenerMethodAdapter(String beanName, Class<?> targetClass, Method method) { |
|
|
|
super(beanName, targetClass, method); |
|
|
|
super(beanName, targetClass, method); |
|
|
|
TransactionalEventListener ann = |
|
|
|
TransactionalEventListener eventAnn = |
|
|
|
AnnotatedElementUtils.findMergedAnnotation(method, TransactionalEventListener.class); |
|
|
|
AnnotatedElementUtils.findMergedAnnotation(getTargetMethod(), TransactionalEventListener.class); |
|
|
|
if (ann == null) { |
|
|
|
if (eventAnn == null) { |
|
|
|
throw new IllegalStateException("No TransactionalEventListener annotation found on method: " + method); |
|
|
|
throw new IllegalStateException("No TransactionalEventListener annotation found on method: " + method); |
|
|
|
} |
|
|
|
} |
|
|
|
this.annotation = ann; |
|
|
|
this.annotation = eventAnn; |
|
|
|
this.transactionPhase = ann.phase(); |
|
|
|
this.transactionPhase = eventAnn.phase(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|