1 10 package org.nanocontainer.aop.dynaop; 11 12 import dynaop.Interceptor; 13 import dynaop.Invocation; 14 import org.aopalliance.intercept.MethodInterceptor; 15 16 23 class MethodInterceptorAdapter implements Interceptor { 24 25 private final MethodInterceptor delegate; 26 27 35 MethodInterceptorAdapter(MethodInterceptor delegate) { 36 this.delegate = delegate; 37 } 38 39 public Object intercept(Invocation invocation) throws Throwable { 40 return delegate.invoke(new InvocationAdapter(invocation)); 41 } 42 43 } | Popular Tags |