Package io.fluentlenium.core.inject
Class DefaultContainerInstantiator
java.lang.Object
io.fluentlenium.core.inject.DefaultContainerInstantiator
- All Implemented Interfaces:
ContainerInstantiator
Creates container instances
-
Constructor Summary
ConstructorDescriptionDefaultContainerInstantiator
(FluentControl control) Creates a new container instantiator -
Method Summary
Modifier and TypeMethodDescription<T> T
newInstance
(Class<T> cls, ContainerContext context) Creates a new instance of a container class and inject it.
-
Constructor Details
-
DefaultContainerInstantiator
Creates a new container instantiator- Parameters:
control
- FluentLenium control
-
-
Method Details
-
newInstance
Description copied from interface:ContainerInstantiator
Creates a new instance of a container class and inject it.- Specified by:
newInstance
in interfaceContainerInstantiator
- Type Parameters:
T
- type of the container- Parameters:
cls
- class of the object to createcontext
- parent content for the newly created container- Returns:
- new instance of the container class
- See Also:
-