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
Base class for implementing a custom
ObjectFactory for cucumber tests and is based on the basic
GuiceFactory implementation which can't be extended. That implementation works well when there is only
single World implementation 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 custom ObjectFactory from this class, register it in
META-INF/services/io.cucumber.core.backend.ObjectFactory and then reference it directly in the
CucumberOptions annotation for the test class.-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractGuiceFactory(com.google.inject.Injector injector) -
Method Summary
-
Constructor Details
-
AbstractGuiceFactory
protected AbstractGuiceFactory(com.google.inject.Injector injector)
-
-
Method Details
-
addClass
- Specified by:
addClassin interfaceio.cucumber.core.backend.Container
-
start
public void start()- Specified by:
startin interfaceio.cucumber.core.backend.ObjectFactory
-
stop
public void stop()- Specified by:
stopin interfaceio.cucumber.core.backend.ObjectFactory
-
getInstance
- Specified by:
getInstancein interfaceio.cucumber.core.backend.Lookup
-