Package io.fluentlenium.core.inject
Interface ContainerInstantiator
- All Known Implementing Classes:
DefaultContainerInstantiator
public interface ContainerInstantiator
Creates container instances.
-
Method Summary
Modifier and TypeMethodDescription<T> T
newInstance
(Class<T> cls, ContainerContext context) Creates a new instance of a container class and inject it.
-
Method Details
-
newInstance
Creates a new instance of a container class and inject it.- 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:
-