Package org.spockframework.guice
Class GuiceInterceptor
java.lang.Object
org.spockframework.runtime.extension.AbstractMethodInterceptor
org.spockframework.guice.GuiceInterceptor
- All Implemented Interfaces:
IMethodInterceptor
Creates a Guice injector, and injects Guice-provided objects into specifications.
- Author:
- Peter Niederwieser
-
Constructor Summary
ConstructorsConstructorDescriptionGuiceInterceptor
(SpecInfo spec, Set<Class<? extends com.google.inject.Module>> moduleClasses) -
Method Summary
Modifier and TypeMethodDescriptionvoid
interceptInitializerMethod
(IMethodInvocation invocation) void
interceptSharedInitializerMethod
(IMethodInvocation invocation) Methods inherited from class org.spockframework.runtime.extension.AbstractMethodInterceptor
intercept, interceptCleanupMethod, interceptCleanupSpecMethod, interceptDataProcessorMethod, interceptDataProviderMethod, interceptFeatureExecution, interceptFeatureMethod, interceptIterationExecution, interceptSetupMethod, interceptSetupSpecMethod, interceptSpecExecution
-
Constructor Details
-
GuiceInterceptor
-
-
Method Details
-
interceptInitializerMethod
- Overrides:
interceptInitializerMethod
in classAbstractMethodInterceptor
- Throws:
Throwable