1 10 package org.nanocontainer.aop.dynaop; 11 12 import dynaop.Invocation; 13 import org.aopalliance.intercept.MethodInvocation; 14 15 import java.lang.reflect.AccessibleObject ; 16 import java.lang.reflect.Method ; 17 18 25 class InvocationAdapter implements MethodInvocation { 26 27 private final Invocation delegate; 28 29 36 InvocationAdapter(Invocation delegate) { 37 this.delegate = delegate; 38 } 39 40 public Method getMethod() { 41 return delegate.getMethod(); 42 } 43 44 public Object [] getArguments() { 45 return delegate.getArguments(); 46 } 47 48 public AccessibleObject getStaticPart() { 49 return delegate.getMethod(); 50 } 51 52 public Object getThis() { 53 return delegate.getProxy().getProxyContext().unwrap(); 54 } 55 56 public Object proceed() throws Throwable { 57 return delegate.proceed(); 58 } 59 60 } | Popular Tags |