com.agical.rmock.extension.cglib
Class ObjectMockInvocationHandler

java.lang.Object
  extended by com.agical.rmock.extension.cglib.BaseInvocationHandler
      extended by com.agical.rmock.extension.cglib.ObjectMockInvocationHandler
All Implemented Interfaces:
net.sf.cglib.proxy.Callback, net.sf.cglib.proxy.MethodInterceptor

public class ObjectMockInvocationHandler
extends BaseInvocationHandler
implements net.sf.cglib.proxy.MethodInterceptor

(c) Agical AB 2005

Author:
brolund

Constructor Summary
ObjectMockInvocationHandler(InvocationHandler invocationHandler, java.lang.String id, java.lang.Class clazz, ProxyFactory proxyFactory, ExpectationsState expectationsState, InvocationListener invocationListener, ObjectReferenceRetriever objectReferenceFromStacktrace)
           
 
Method Summary
 java.lang.Object intercept(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] parameters, net.sf.cglib.proxy.MethodProxy methodProxy)
           
 
Methods inherited from class com.agical.rmock.extension.cglib.BaseInvocationHandler
sendInvocationListenerEvent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectMockInvocationHandler

public ObjectMockInvocationHandler(InvocationHandler invocationHandler,
                                   java.lang.String id,
                                   java.lang.Class clazz,
                                   ProxyFactory proxyFactory,
                                   ExpectationsState expectationsState,
                                   InvocationListener invocationListener,
                                   ObjectReferenceRetriever objectReferenceFromStacktrace)
Method Detail

intercept

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


Copyright © 2005-2011 Agical AB. All Rights Reserved.