org.mockito.internal.creation
Interface MockAwareInterceptor<T>

All Superinterfaces:
net.sf.cglib.proxy.Callback, net.sf.cglib.proxy.MethodInterceptor
All Known Implementing Classes:
MethodInterceptorFilter, MockHandler

public interface MockAwareInterceptor<T>
extends net.sf.cglib.proxy.MethodInterceptor


Method Summary
 java.lang.Object intercept(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args, net.sf.cglib.proxy.MethodProxy methodProxy)
           
 void setInstance(T mock)
           
 

Method Detail

intercept

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

setInstance

void setInstance(T mock)