Class AbstractMethodInterceptor
- java.lang.Object
-
- org.spockframework.runtime.extension.AbstractMethodInterceptor
-
- All Implemented Interfaces:
IMethodInterceptor
- Direct Known Subclasses:
GuiceInterceptor
public abstract class AbstractMethodInterceptor extends java.lang.Object implements IMethodInterceptor
-
-
Constructor Summary
Constructors Constructor Description AbstractMethodInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidintercept(IMethodInvocation invocation)voidinterceptCleanupMethod(IMethodInvocation invocation)voidinterceptCleanupSpecMethod(IMethodInvocation invocation)voidinterceptDataProcessorMethod(IMethodInvocation invocation)voidinterceptDataProviderMethod(IMethodInvocation invocation)voidinterceptFeatureExecution(IMethodInvocation invocation)voidinterceptFeatureMethod(IMethodInvocation invocation)voidinterceptInitializerMethod(IMethodInvocation invocation)voidinterceptIterationExecution(IMethodInvocation invocation)voidinterceptSetupMethod(IMethodInvocation invocation)voidinterceptSetupSpecMethod(IMethodInvocation invocation)voidinterceptSharedInitializerMethod(IMethodInvocation invocation)voidinterceptSpecExecution(IMethodInvocation invocation)
-
-
-
Method Detail
-
intercept
public final void intercept(IMethodInvocation invocation) throws java.lang.Throwable
- Specified by:
interceptin interfaceIMethodInterceptor- Throws:
java.lang.Throwable
-
interceptInitializerMethod
public void interceptInitializerMethod(IMethodInvocation invocation) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
interceptSharedInitializerMethod
public void interceptSharedInitializerMethod(IMethodInvocation invocation) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
interceptSetupMethod
public void interceptSetupMethod(IMethodInvocation invocation) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
interceptCleanupMethod
public void interceptCleanupMethod(IMethodInvocation invocation) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
interceptSetupSpecMethod
public void interceptSetupSpecMethod(IMethodInvocation invocation) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
interceptCleanupSpecMethod
public void interceptCleanupSpecMethod(IMethodInvocation invocation) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
interceptFeatureMethod
public void interceptFeatureMethod(IMethodInvocation invocation) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
interceptDataProviderMethod
public void interceptDataProviderMethod(IMethodInvocation invocation) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
interceptDataProcessorMethod
public void interceptDataProcessorMethod(IMethodInvocation invocation) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
interceptIterationExecution
public void interceptIterationExecution(IMethodInvocation invocation) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
interceptSpecExecution
public void interceptSpecExecution(IMethodInvocation invocation) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
interceptFeatureExecution
public void interceptFeatureExecution(IMethodInvocation invocation) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-