Class AbstractGuiceFactory
- java.lang.Object
- 
- org.apache.tinkerpop.gremlin.features.AbstractGuiceFactory
 
- 
- All Implemented Interfaces:
- io.cucumber.core.backend.Container,- io.cucumber.core.backend.Lookup,- io.cucumber.core.backend.ObjectFactory
 
 public class AbstractGuiceFactory extends Object implements io.cucumber.core.backend.ObjectFactory Base class for implementing a customObjectFactoryfor cucumber tests and is based on the basicGuiceFactoryimplementation which can't be extended. That implementation works well when there is only singleWorldimplementation to test or if the requirements are such that system properties or environment variables can otherwise suffice in controlling the test environment to the provider's satisfaction. In other cases, it may simply be easier to create a customObjectFactoryfrom this class, register it inMETA-INF/services/io.cucumber.core.backend.ObjectFactoryand then reference it directly in theCucumberOptionsannotation for the test class.
- 
- 
Constructor SummaryConstructors Modifier Constructor Description protectedAbstractGuiceFactory(com.google.inject.Injector injector)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddClass(Class<?> clazz)<T> TgetInstance(Class<T> clazz)voidstart()voidstop()
 
- 
- 
- 
Method Detail- 
addClasspublic boolean addClass(Class<?> clazz) - Specified by:
- addClassin interface- io.cucumber.core.backend.Container
 
 - 
startpublic void start() - Specified by:
- startin interface- io.cucumber.core.backend.ObjectFactory
 
 - 
stoppublic void stop() - Specified by:
- stopin interface- io.cucumber.core.backend.ObjectFactory
 
 - 
getInstancepublic <T> T getInstance(Class<T> clazz) - Specified by:
- getInstancein interface- io.cucumber.core.backend.Lookup
 
 
- 
 
-