java.lang.Object
tech.guilhermekaua.spigotboot.inventoryapi.internal.engine.phase.PaginationInitPhase

@Internal public final class PaginationInitPhase extends Object
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 Details

    • PaginationInitPhase

      public PaginationInitPhase(@NotNull @NotNull ViewEngine engine, @NotNull @NotNull SessionRegistry sessions)
      Creates the phase.
      Parameters:
      engine - the owning engine, used by the abort path
      sessions - the per-player session registry, used by the abort path
  • Method Details

    • init

      public boolean init(@NotNull @NotNull ViewSession session)
      Initializes every pagination binding of the session.
      Parameters:
      session - the freshly opened session; layout resolved and container created
      Returns:
      true when every binding initialized; false when a binding failed and the open was aborted with an OPEN_FAILED close