Package io.fluentlenium.core.inject
Interface FluentInjectControl
- All Known Subinterfaces:
FluentControl,FluentPageControl,IFluentAdapter
- All Known Implementing Classes:
BaseFluentHook,BaseHook,ContainerFluentControl,DefaultFluentContainer,FluentAdapter,FluentControlImpl,FluentDriver,FluentInjector,FluentPage,FluentStandalone,FluentStandaloneRunnable,FluentTestRunnerAdapter,FluentWebElement,IsolatedTest,WaitHook
public interface FluentInjectControl
Control interface for FluentLenium injection.
-
Method Summary
Modifier and TypeMethodDescriptionInject object with FluentLenium resources.injectComponent(Object componentContainer, Object parentContainer, org.openqa.selenium.SearchContext context) Inject object with FluentLenium resources, using given search context and parent container.<T> TnewInstance(Class<T> cls) Creates a new instance of a class inject it.
-
Method Details
-
inject
Inject object with FluentLenium resources.- Parameters:
container- container to inject with FluentLenium resources- Returns:
- The container context related to the injected container
-
injectComponent
ContainerContext injectComponent(Object componentContainer, Object parentContainer, org.openqa.selenium.SearchContext context) Inject object with FluentLenium resources, using given search context and parent container.- Parameters:
componentContainer- container to inject with FluentLenium resourcesparentContainer- parent containercontext- search context to use for injection- Returns:
- The container context related to the injected container
-
newInstance
Creates a new instance of a class inject it.- Type Parameters:
T- type of the object- Parameters:
cls- class of the object to create- Returns:
- new container instance
- See Also:
-