Package io.cucumber.guice
Class GuiceFactory
- java.lang.Object
-
- io.cucumber.guice.GuiceFactory
-
- All Implemented Interfaces:
Container
,Lookup
,ObjectFactory
@API(status=STABLE) public final class GuiceFactory extends Object implements ObjectFactory
Guice implementation of theio.cucumber.core.backend.ObjectFactory
.
-
-
Constructor Summary
Constructors Constructor Description GuiceFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addClass(Class<?> clazz)
<T> T
getInstance(Class<T> clazz)
void
start()
void
stop()
-
-
-
Method Detail
-
start
public void start()
- Specified by:
start
in interfaceObjectFactory
-
stop
public void stop()
- Specified by:
stop
in interfaceObjectFactory
-
getInstance
public <T> T getInstance(Class<T> clazz)
- Specified by:
getInstance
in interfaceLookup
-
-