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