org.spockframework.guice
Class GuiceInterceptor
java.lang.Object
org.spockframework.runtime.extension.AbstractMethodInterceptor
org.spockframework.guice.GuiceInterceptor
- All Implemented Interfaces:
- IMethodInterceptor
public class GuiceInterceptor
- extends AbstractMethodInterceptor
Creates a Guice injector, and injects Guice-provided objects into specifications.
- Author:
- Peter Niederwieser
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GuiceInterceptor
public GuiceInterceptor(SpecInfo spec,
Set<Class<? extends Module>> moduleClasses)
interceptSetupSpecMethod
public void interceptSetupSpecMethod(IMethodInvocation invocation)
throws Throwable
- Overrides:
interceptSetupSpecMethod in class AbstractMethodInterceptor
- Throws:
Throwable
interceptSetupMethod
public void interceptSetupMethod(IMethodInvocation invocation)
throws Throwable
- Overrides:
interceptSetupMethod in class AbstractMethodInterceptor
- Throws:
Throwable
Copyright © 2010. All Rights Reserved.