@API(status=STABLE) public interface ObjectFactory extends Container, Lookup
Cucumber scenarios are executed against a test context that consists of multiple glue classes. These must be instantiated and may optionally be injected with dependencies.
When multiple ObjectFactory
implementations are available Cucumber
will look for a preference in the provided properties or options.
ServiceLoader
,
ObjectFactoryServiceLoader
Modifier and Type | Method and Description |
---|---|
void |
start()
Start the object factory.
|
void |
stop()
Stops the object factory.
|
getInstance
void start()
While started Lookup.getInstance(Class)
may be invoked.
void stop()
When stopped the object factory should dispose of all glue instances.
Copyright © 2019. All rights reserved.