Class CucumberScopes

java.lang.Object
io.cucumber.guice.CucumberScopes

@API(status=STABLE) public final class CucumberScopes extends Object
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 Details

    • createScenarioScope

      public static ScenarioScope createScenarioScope()
      Creates a new instance of a ScenarioScope.
      Returns:
      a new instance of a ScenarioScope.