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 void
intercept(IMethodInvocation invocation)
void
interceptCleanupMethod(IMethodInvocation invocation)
void
interceptCleanupSpecMethod(IMethodInvocation invocation)
void
interceptDataProcessorMethod(IMethodInvocation invocation)
void
interceptDataProviderMethod(IMethodInvocation invocation)
void
interceptFeatureExecution(IMethodInvocation invocation)
void
interceptFeatureMethod(IMethodInvocation invocation)
void
interceptInitializerMethod(IMethodInvocation invocation)
void
interceptIterationExecution(IMethodInvocation invocation)
void
interceptSetupMethod(IMethodInvocation invocation)
void
interceptSetupSpecMethod(IMethodInvocation invocation)
void
interceptSharedInitializerMethod(IMethodInvocation invocation)
void
interceptSpecExecution(IMethodInvocation invocation)
-
-
-
Method Detail
-
intercept
public final void intercept(IMethodInvocation invocation) throws java.lang.Throwable
- Specified by:
intercept
in 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
-
-