Interface StateBackedContext
- All Known Implementing Classes:
AbstractViewContext,CloseContextImpl,OpenContextImpl,PlainViewContextImpl,RenderContextImpl,SlotClickContextImpl,UpdateContextImpl
@Internal
public interface StateBackedContext
Seam between state token impls and context implementations: a context exposing the
session's state store, owning view and liveness. Implemented by
AbstractViewContext in the internal context layer (plan task 11); tests may
implement it directly against a real StateStore.-
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether this context may still access state;falseonce closed.@NotNull Viewowner()Returns the view singleton owning this context, used for foreign-token checks.@NotNull StateStoreReturns the per-session state storage backing this context.
-
Method Details
-
stateStore
Returns the per-session state storage backing this context.- Returns:
- the state store
-
owner
Returns the view singleton owning this context, used for foreign-token checks.- Returns:
- the owning view
-
contextActive
boolean contextActive()Returns whether this context may still access state;falseonce closed.- Returns:
truewhile state access is legal
-