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 Type
    Method
    Description
    boolean
    Returns whether this context may still access state; false once closed.
    @NotNull View
    Returns the view singleton owning this context, used for foreign-token checks.
    @NotNull StateStore
    Returns the per-session state storage backing this context.
  • Method Details

    • stateStore

      @NotNull @NotNull StateStore stateStore()
      Returns the per-session state storage backing this context.
      Returns:
      the state store
    • owner

      @NotNull @NotNull View 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; false once closed.
      Returns:
      true while state access is legal