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

io.cucumber.guice.ScenarioModule Maven / Gradle / Ivy

There is a newer version: 7.20.1
Show newest version
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);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy