Class PaginationInitPhase
java.lang.Object
tech.guilhermekaua.spigotboot.inventoryapi.internal.engine.phase.PaginationInitPhase
Pagination init step of the open pipeline (spec §7 step 7): initializes every pagination
binding of a freshly opened session between layout resolution and
onFirstRender —
target slots resolve against the session layout, the per-context page source is built,
the geometry engine is constructed and pending navigation recorded during onOpen
is replayed. A failing initialization aborts the open through the shared OPEN_FAILED
path. Constructed and invoked only by ViewEngine.-
Constructor Summary
ConstructorsConstructorDescriptionPaginationInitPhase(@NotNull ViewEngine engine, @NotNull SessionRegistry sessions) Creates the phase. -
Method Summary
Modifier and TypeMethodDescriptionbooleaninit(@NotNull ViewSession session) Initializes every pagination binding of the session.
-
Constructor Details
-
PaginationInitPhase
public PaginationInitPhase(@NotNull @NotNull ViewEngine engine, @NotNull @NotNull SessionRegistry sessions) Creates the phase.- Parameters:
engine- the owning engine, used by the abort pathsessions- the per-player session registry, used by the abort path
-
-
Method Details
-
init
Initializes every pagination binding of the session.- Parameters:
session- the freshly opened session; layout resolved and container created- Returns:
truewhen every binding initialized;falsewhen a binding failed and the open was aborted with anOPEN_FAILEDclose
-