io.cucumber.guice.ScenarioModule Maven / Gradle / Ivy
package io.cucumber.guice;
import com.google.inject.AbstractModule;
public class ScenarioModule extends AbstractModule {
private final ScenarioScope scenarioScope;
public ScenarioModule(ScenarioScope scenarioScope) {
this.scenarioScope = scenarioScope;
}
/**
* Configures a {@link com.google.inject.Binder} via the exposed methods.
*/
@Override
protected void configure() {
bindScope(ScenarioScoped.class, scenarioScope);
bind(ScenarioScope.class).toInstance(scenarioScope);
}
}