com.agical.rmock.extension.cglib
Class ObjectInterceptionInvocationHandler

java.lang.Object
  extended by com.agical.rmock.extension.cglib.BaseInvocationHandler
      extended by com.agical.rmock.extension.cglib.ObjectInterceptionInvocationHandler
All Implemented Interfaces:
net.sf.cglib.proxy.Callback, net.sf.cglib.proxy.MethodInterceptor
Direct Known Subclasses:
InterfaceInterceptionInvocationHandler

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

(c) Agical AB 2005

Author:
brolund

Constructor Summary
ObjectInterceptionInvocationHandler(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

ObjectInterceptionInvocationHandler

public ObjectInterceptionInvocationHandler(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-2008 Agical AB. All Rights Reserved.