All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cucumber.runtime.java.guice.impl.ScenarioModule Maven / Gradle / Ivy

There is a newer version: 7.19.0
Show newest version
package cucumber.runtime.java.guice.impl;

import com.google.inject.AbstractModule;
import cucumber.runtime.java.guice.ScenarioScoped;
import cucumber.runtime.java.guice.ScenarioScope;

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);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy