Package io.cucumber.core.runtime
Class ObjectFactoryServiceLoader
- java.lang.Object
-
- io.cucumber.core.runtime.ObjectFactoryServiceLoader
-
public final class ObjectFactoryServiceLoader extends Object
Loads an instance ofObjectFactory
using theServiceLoader
mechanism.Will load an instance of the class provided by
Options.getObjectFactoryClass()
. IfOptions.getObjectFactoryClass()
does not provide a class and there is exactly oneObjectFactory
instance available that instance will be used.Otherwise
DefaultObjectFactory
with no dependency injection
-
-
Constructor Detail
-
ObjectFactoryServiceLoader
public ObjectFactoryServiceLoader(Supplier<ClassLoader> classLoaderSupplier, Options options)
-
-