Package io.cucumber.core.runtime
Class UuidGeneratorServiceLoader
java.lang.Object
io.cucumber.core.runtime.UuidGeneratorServiceLoader
Loads an instance of
UuidGenerator
using the ServiceLoader
mechanism.
Will load an instance of the class provided by
Options.getUuidGeneratorClass()
. If
Options.getUuidGeneratorClass()
does not provide a class, if there is
exactly one UuidGenerator
instance available that instance will be
used.
Otherwise RandomUuidGenerator
with no dependency injection
-
Constructor Summary
ConstructorDescriptionUuidGeneratorServiceLoader
(Supplier<ClassLoader> classLoaderSupplier, Options options) -
Method Summary
-
Constructor Details
-
UuidGeneratorServiceLoader
-