com.wideplay.warp.persist.internal
Class AopAllianceCglibAdapter

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

@Immutable
public class AopAllianceCglibAdapter
extends Object
implements net.sf.cglib.proxy.MethodInterceptor

Adapter used to transform cglib interceptors to work with guice (aopalliance) interceptors. Used to generate proxies for abstract classes, i.e. ones that are annotated @Finder.


Constructor Summary
AopAllianceCglibAdapter(MethodInterceptor finderInterceptor)
           
 
Method Summary
 Object intercept(Object object, Method method, Object[] args, net.sf.cglib.proxy.MethodProxy methodProxy)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AopAllianceCglibAdapter

public AopAllianceCglibAdapter(MethodInterceptor finderInterceptor)
Method Detail

intercept

public Object intercept(Object object,
                        Method method,
                        Object[] args,
                        net.sf.cglib.proxy.MethodProxy methodProxy)
                 throws Throwable
Specified by:
intercept in interface net.sf.cglib.proxy.MethodInterceptor
Throws:
Throwable