Package com.vaadin.flow.internal
Class ExecutionContext
- java.lang.Object
-
- com.vaadin.flow.internal.ExecutionContext
-
- All Implemented Interfaces:
Serializable
public class ExecutionContext extends Object implements Serializable
Context of a callback execution whenUI.beforeClientResponse(com.vaadin.flow.component.Component, com.vaadin.flow.function.SerializableConsumer)
is invoked.For internal use only. May be renamed or removed in a future release.
- Since:
- 1.0.
- Author:
- Vaadin Ltd
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ExecutionContext(UI ui, boolean clientSideInitialized)
Creates a new, immutable context.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UI
getUI()
Gets the UI associated with the execution.boolean
isClientSideInitialized()
Gets whether the client side is being initialized as part of the server response.
-
-
-
Constructor Detail
-
ExecutionContext
public ExecutionContext(UI ui, boolean clientSideInitialized)
Creates a new, immutable context.- Parameters:
ui
- The UI associated with the executionclientSideInitialized
-true
if the client side is already initialized,false
if it is being initialized as part of the current response
-
-
Method Detail
-
getUI
public UI getUI()
Gets the UI associated with the execution.- Returns:
- the UI, not
null
-
isClientSideInitialized
public boolean isClientSideInitialized()
Gets whether the client side is being initialized as part of the server response.- Returns:
true
if the client side is already initialized,false
if it is being initialized as part of the current response
-
-