Package io.cucumber.jakarta.openejb
Class OpenEJBObjectFactory
java.lang.Object
io.cucumber.jakarta.openejb.OpenEJBObjectFactory
- All Implemented Interfaces:
Container,Lookup,ObjectFactory
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
classes
-
instances
-
container
private @Nullable jakarta.ejb.embeddable.EJBContainer container
-
-
Constructor Details
-
OpenEJBObjectFactory
public OpenEJBObjectFactory()
-
-
Method Details
-
start
public void start()Description copied from interface:ObjectFactoryStart the object factory. Invoked once per scenario.While started
Lookup.getInstance(Class)may be invoked.- Specified by:
startin interfaceObjectFactory
-
stop
public void stop()Description copied from interface:ObjectFactoryStops the object factory. Called once per scenario.When stopped the object factory should dispose of all glue instances.
- Specified by:
stopin interfaceObjectFactory
-
addClass
Description copied from interface:ContainerAdd a glue class to the test context.Invoked after creation but before
ObjectFactory.start(). -
getInstance
Description copied from interface:LookupProvides an instance of a glue class.- Specified by:
getInstancein interfaceLookup- Type Parameters:
T- type of Glue class- Parameters:
type- type of instance to be created.- Returns:
- new instance of type T
-