diff --git a/pom.xml b/pom.xml
index b4ed558..dcd916a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -209,8 +209,8 @@
org.apache.maven.plugins
maven-compiler-plugin
- 1.7
- 1.7
+ 1.6
+ 1.6
diff --git a/src/main/java/org/springframework/retry/annotation/AnnotationAwareRetryOperationsInterceptor.java b/src/main/java/org/springframework/retry/annotation/AnnotationAwareRetryOperationsInterceptor.java
index 613c0e7..3758a49 100644
--- a/src/main/java/org/springframework/retry/annotation/AnnotationAwareRetryOperationsInterceptor.java
+++ b/src/main/java/org/springframework/retry/annotation/AnnotationAwareRetryOperationsInterceptor.java
@@ -23,6 +23,7 @@ import java.util.concurrent.atomic.AtomicBoolean;
import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;
+import org.springframework.aop.IntroductionInterceptor;
import org.springframework.core.annotation.AnnotationUtils;
import org.springframework.retry.RetryPolicy;
import org.springframework.retry.backoff.BackOffPolicy;
@@ -44,14 +45,14 @@ import org.springframework.util.ReflectionUtils;
import org.springframework.util.ReflectionUtils.MethodCallback;
/**
- * Wrapper interceptor that interprets the retry metadata on the method it is invoking and
+ * WrappeMethodInterceptorr interceptor that interprets the retry metadata on the method it is invoking and
* delegates to an appropriate RetryOperationsInterceptor.
*
* @author Dave Syer
* @since 2.0
*
*/
-public class AnnotationAwareRetryOperationsInterceptor implements MethodInterceptor {
+public class AnnotationAwareRetryOperationsInterceptor implements IntroductionInterceptor {
private Map delegates = new HashMap();
@@ -99,6 +100,11 @@ public class AnnotationAwareRetryOperationsInterceptor implements MethodIntercep
return delegate.invoke(invocation);
}
+ @Override
+ public boolean implementsInterface(Class> intf) {
+ return Retryable.class.isAssignableFrom(intf);
+ }
+
private MethodInterceptor getDelegate(Object target, Method method) {
if (!delegates.containsKey(method)) {
synchronized (delegates) {
diff --git a/src/main/java/org/springframework/retry/interceptor/RetryOperationsInterceptor.java b/src/main/java/org/springframework/retry/interceptor/RetryOperationsInterceptor.java
index 3c20868..cf0db0f 100644
--- a/src/main/java/org/springframework/retry/interceptor/RetryOperationsInterceptor.java
+++ b/src/main/java/org/springframework/retry/interceptor/RetryOperationsInterceptor.java
@@ -17,7 +17,6 @@ import java.util.Arrays;
import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;
-import org.springframework.aop.IntroductionInterceptor;
import org.springframework.aop.ProxyMethodInvocation;
import org.springframework.retry.RecoveryCallback;
import org.springframework.retry.RetryCallback;
@@ -42,7 +41,7 @@ import org.springframework.util.Assert;
* @author Rob Harrop
* @author Dave Syer
*/
-public class RetryOperationsInterceptor implements IntroductionInterceptor {
+public class RetryOperationsInterceptor implements MethodInterceptor {
private RetryOperations retryOperations = new RetryTemplate();
private MethodInvocationRecoverer> recoverer;
@@ -56,11 +55,6 @@ public class RetryOperationsInterceptor implements IntroductionInterceptor {
this.recoverer = recoverer;
}
- @Override
- public boolean implementsInterface(Class> intf) {
- return Retryable.class.isAssignableFrom(intf);
- }
-
public Object invoke(final MethodInvocation invocation) throws Throwable {
RetryCallback