Class ObjectFactoryServiceLoader

java.lang.Object
io.cucumber.core.runtime.ObjectFactoryServiceLoader

public final class ObjectFactoryServiceLoader extends Object
Loads an instance of ObjectFactory using the ServiceLoader mechanism.

Will load an instance of the class provided by Options.getObjectFactoryClass(). If Options.getObjectFactoryClass() does not provide a class and there is exactly one ObjectFactory instance available that instance will be used.

Otherwise DefaultObjectFactory with no dependency injection

  • Constructor Details