com.agical.rmock.extension.cglib
Class ObjectMonitorInvocationHandler

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

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

Author:
brolund (c) 2005 Agical AB

Constructor Summary
ObjectMonitorInvocationHandler(InvocationHandler invocationHandler, java.lang.String id, java.lang.Class clazz, InvocationListener invocationListener, ObjectReferenceRetriever objectReferenceFromStacktrace, ExpectationsState expectationsState)
           
 
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

ObjectMonitorInvocationHandler

public ObjectMonitorInvocationHandler(InvocationHandler invocationHandler,
                                      java.lang.String id,
                                      java.lang.Class clazz,
                                      InvocationListener invocationListener,
                                      ObjectReferenceRetriever objectReferenceFromStacktrace,
                                      ExpectationsState expectationsState)
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-2008 Agical AB. All Rights Reserved.