Package io.cucumber.guice
Class CucumberScopes
- java.lang.Object
-
- io.cucumber.guice.CucumberScopes
-
@API(status=STABLE) public final class CucumberScopes extends Object
Creates an instance ofScenarioScopefor use when declaring bindings in implementations ofModule.Note that when binding objects to the scenario scope it is recommended to bind them to the
ScenarioScopedannotation instead. E.g:bind(ScenarioScopedObject.class).in(ScenarioScoped.class);
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ScenarioScopecreateScenarioScope()Creates a new instance of a ScenarioScope.
-
-
-
Method Detail
-
createScenarioScope
public static ScenarioScope createScenarioScope()
Creates a new instance of a ScenarioScope.- Returns:
- a new instance of a ScenarioScope.
-
-