Package io.cucumber.core.runtime
Class ThreadLocalRunnerSupplier
- java.lang.Object
-
- io.cucumber.core.runtime.ThreadLocalRunnerSupplier
-
- All Implemented Interfaces:
RunnerSupplier
public final class ThreadLocalRunnerSupplier extends Object implements RunnerSupplier
Creates a distinct runner for each calling thread. Each runner has its own bus, backend- and glue-suppliers.Each runners bus passes all events to the event bus of this supplier.
-
-
Constructor Summary
Constructors Constructor Description ThreadLocalRunnerSupplier(Options runnerOptions, EventBus sharedEventBus, BackendSupplier backendSupplier, ObjectFactorySupplier objectFactorySupplier, TypeRegistryConfigurerSupplier typeRegistryConfigurerSupplier)
-
-
-
Constructor Detail
-
ThreadLocalRunnerSupplier
public ThreadLocalRunnerSupplier(Options runnerOptions, EventBus sharedEventBus, BackendSupplier backendSupplier, ObjectFactorySupplier objectFactorySupplier, TypeRegistryConfigurerSupplier typeRegistryConfigurerSupplier)
-
-
Method Detail
-
get
public Runner get()
- Specified by:
get
in interfaceRunnerSupplier
-
-