Package io.fluentlenium.core.inject
Class DefaultContainerInstantiator
java.lang.Object
io.fluentlenium.core.inject.DefaultContainerInstantiator
- All Implemented Interfaces:
ContainerInstantiator
Creates container instances
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new container instantiator -
Method Summary
Modifier and TypeMethodDescription<T> TnewInstance(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:ContainerInstantiatorCreates a new instance of a container class and inject it.- Specified by:
newInstancein 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:
-