Package io.cucumber.guice
Class CucumberScopes
java.lang.Object
io.cucumber.guice.CucumberScopes
Creates an instance of
ScenarioScope for use when declaring bindings
in implementations of Module.
Note that when binding objects to the scenario scope it is recommended to
bind them to the ScenarioScoped annotation instead. E.g:
bind(ScenarioScopedObject.class).in(ScenarioScoped.class);
-
Method Summary
Modifier and TypeMethodDescriptionstatic ScenarioScopeCreates a new instance of a ScenarioScope.
-
Method Details
-
createScenarioScope
Creates a new instance of a ScenarioScope.- Returns:
- a new instance of a ScenarioScope.
-