com.tngtech.jgiven.impl.intercept
Class StepMethodInterceptor

java.lang.Object
  extended by com.tngtech.jgiven.impl.intercept.StepMethodInterceptor
All Implemented Interfaces:
net.sf.cglib.proxy.Callback, net.sf.cglib.proxy.MethodInterceptor

public class StepMethodInterceptor
extends java.lang.Object
implements net.sf.cglib.proxy.MethodInterceptor


Constructor Summary
StepMethodInterceptor(StepMethodHandler scenarioMethodHandler, java.util.concurrent.atomic.AtomicInteger stackDepth)
           
 
Method Summary
 void disableMethodExecution()
           
 void enableMethodHandling(boolean b)
           
 java.lang.Object intercept(java.lang.Object receiver, java.lang.reflect.Method method, java.lang.Object[] parameters, net.sf.cglib.proxy.MethodProxy methodProxy)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StepMethodInterceptor

public StepMethodInterceptor(StepMethodHandler scenarioMethodHandler,
                             java.util.concurrent.atomic.AtomicInteger stackDepth)
Method Detail

intercept

public java.lang.Object intercept(java.lang.Object receiver,
                                  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

enableMethodHandling

public void enableMethodHandling(boolean b)

disableMethodExecution

public void disableMethodExecution()