Package io.fluentlenium.core.inject
Class DefaultContainerContext
java.lang.Object
io.fluentlenium.core.inject.DefaultContainerContext
- All Implemented Interfaces:
ContainerContext
Context for a container
-
Constructor Summary
ConstructorDescriptionDefaultContainerContext
(Object container) Creates a new container contextDefaultContainerContext
(Object container, ContainerContext parentContext, org.openqa.selenium.SearchContext searchContext) Creates a new container context, with a parent context and a search context -
Method Summary
Modifier and TypeMethodDescriptionGet the container related to this context.List<HookDefinition<?>>
Get the list of hook definitions attached to this context.Get the parent context.org.openqa.selenium.SearchContext
Get the search context of this container context.
-
Constructor Details
-
DefaultContainerContext
Creates a new container context- Parameters:
container
- container
-
DefaultContainerContext
public DefaultContainerContext(Object container, ContainerContext parentContext, org.openqa.selenium.SearchContext searchContext) Creates a new container context, with a parent context and a search context- Parameters:
container
- containerparentContext
- parent contextsearchContext
- search context
-
-
Method Details
-
getContainer
Description copied from interface:ContainerContext
Get the container related to this context.- Specified by:
getContainer
in interfaceContainerContext
- Returns:
- container
-
getParent
Description copied from interface:ContainerContext
Get the parent context.- Specified by:
getParent
in interfaceContainerContext
- Returns:
- parent context
-
getSearchContext
public org.openqa.selenium.SearchContext getSearchContext()Description copied from interface:ContainerContext
Get the search context of this container context.- Specified by:
getSearchContext
in interfaceContainerContext
- Returns:
- search context
-
getHookDefinitions
Description copied from interface:ContainerContext
Get the list of hook definitions attached to this context.- Specified by:
getHookDefinitions
in interfaceContainerContext
- Returns:
- hook definitions list
-