com.wideplay.warp.persist.internal
Class AopAllianceJdkProxyAdapter

java.lang.Object
  extended by com.wideplay.warp.persist.internal.AopAllianceJdkProxyAdapter
All Implemented Interfaces:
net.sf.cglib.proxy.Callback, net.sf.cglib.proxy.InvocationHandler

@Immutable
public class AopAllianceJdkProxyAdapter
extends Object
implements net.sf.cglib.proxy.InvocationHandler

This is a simple adapter to convert a JDK dynamic proxy invocation into an aopalliance invocation. Mainly for supporting @Finder on interface methods.

Since:
1.0

Constructor Summary
AopAllianceJdkProxyAdapter(MethodInterceptor interceptor)
           
 
Method Summary
 Object invoke(Object object, Method method, Object[] objects)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AopAllianceJdkProxyAdapter

public AopAllianceJdkProxyAdapter(MethodInterceptor interceptor)
Method Detail

invoke

public Object invoke(Object object,
                     Method method,
                     Object[] objects)
              throws Throwable
Specified by:
invoke in interface net.sf.cglib.proxy.InvocationHandler
Throws:
Throwable