com.advancedpwr.record.mock
Class MockRecordingInvocationHandler

java.lang.Object
  extended by com.advancedpwr.record.mock.MockRecordingInvocationHandler
All Implemented Interfaces:
InvocationHandler

public class MockRecordingInvocationHandler
extends Object
implements InvocationHandler


Field Summary
protected  MockBehaviorRecorder fieldRecorder
           
protected  BehaviorInstanceTree fieldTree
           
 
Constructor Summary
MockRecordingInvocationHandler(MockBehaviorRecorder inRecorder, BehaviorInstanceTree inTree)
           
 
Method Summary
protected  void debug(Object inObject)
           
protected  MockBehaviorRecorder getRecorder()
           
protected  Object getSource()
           
protected  BehaviorInstanceTree getTree()
           
protected
<T> T
instrument(T inObject)
           
protected  Object[] instrumentArguments(Method method, Object[] args)
           
protected
<T> T[]
instrumentedArray(T[] inArray)
           
 Object invoke(Object proxy, Method method, Object[] args)
           
protected  boolean isObjectMethod(Method method)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fieldTree

protected BehaviorInstanceTree fieldTree

fieldRecorder

protected MockBehaviorRecorder fieldRecorder
Constructor Detail

MockRecordingInvocationHandler

public MockRecordingInvocationHandler(MockBehaviorRecorder inRecorder,
                                      BehaviorInstanceTree inTree)
Method Detail

debug

protected void debug(Object inObject)

invoke

public Object invoke(Object proxy,
                     Method method,
                     Object[] args)
              throws Throwable
Specified by:
invoke in interface InvocationHandler
Throws:
Throwable

instrumentArguments

protected Object[] instrumentArguments(Method method,
                                       Object[] args)

instrumentedArray

protected <T> T[] instrumentedArray(T[] inArray)

getSource

protected Object getSource()

getTree

protected BehaviorInstanceTree getTree()

isObjectMethod

protected boolean isObjectMethod(Method method)

getRecorder

protected MockBehaviorRecorder getRecorder()

instrument

protected <T> T instrument(T inObject)


Copyright © 2011 Advanced Power Co. All Rights Reserved.