Package org.fluentlenium.core.inject
Class DefaultContainerInstantiator
- java.lang.Object
-
- org.fluentlenium.core.inject.DefaultContainerInstantiator
-
- All Implemented Interfaces:
ContainerInstantiator
public class DefaultContainerInstantiator extends java.lang.Object implements ContainerInstantiator
Creates container instances
-
-
Constructor Summary
Constructors Constructor Description DefaultContainerInstantiator(FluentControl control)
Creates a new container instantiator
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> T
newInstance(java.lang.Class<T> cls, ContainerContext context)
Creates a new instance of a container class and inject it.
-
-
-
Constructor Detail
-
DefaultContainerInstantiator
public DefaultContainerInstantiator(FluentControl control)
Creates a new container instantiator- Parameters:
control
- FluentLenium control
-
-
Method Detail
-
newInstance
public <T> T newInstance(java.lang.Class<T> cls, ContainerContext context)
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:
FluentInjectControl.inject(Object)
-
-