Package io.cucumber.core.runtime
Class ThreadLocalRunnerSupplier
java.lang.Object
io.cucumber.core.runtime.ThreadLocalRunnerSupplier
- All Implemented Interfaces:
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BackendSupplierprivate final ObjectFactorySupplierprivate final Optionsprivate final ThreadLocal<Runner> private final SynchronizedEventBus -
Constructor Summary
ConstructorsConstructorDescriptionThreadLocalRunnerSupplier(Options runnerOptions, EventBus sharedEventBus, BackendSupplier backendSupplier, ObjectFactorySupplier objectFactorySupplier) -
Method Summary
-
Field Details
-
backendSupplier
-
runnerOptions
-
objectFactorySupplier
-
runners
-
-
Constructor Details
-
ThreadLocalRunnerSupplier
public ThreadLocalRunnerSupplier(Options runnerOptions, EventBus sharedEventBus, BackendSupplier backendSupplier, ObjectFactorySupplier objectFactorySupplier)
-
-
Method Details
-
get
- Specified by:
getin interfaceRunnerSupplier
-
createRunner
-