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

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

There is a newer version: 7.20.1
Show newest version
package io.cucumber.guice;

import com.google.inject.Module;
import org.apiguardian.api.API;

/**
 * Provides a convenient {@link Module} instance that contains bindings for
 * {@link ScenarioScoped} annotation and for {@link ScenarioScope}.
 */
@API(status = API.Status.STABLE)
public final class CucumberModules {

    private CucumberModules() {

    }

    public static Module createScenarioModule() {
        return new ScenarioModule(CucumberScopes.createScenarioScope());
    }

    public static Module createScenarioModule(ScenarioScope scenarioScope) {
        return new ScenarioModule(scenarioScope);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy