Class InventoryApiModule

java.lang.Object
tech.guilhermekaua.spigotboot.inventoryapi.InventoryApiModule
All Implemented Interfaces:
Module

public final class InventoryApiModule extends Object implements Module
Bootstraps the inventory-api view engine: initializes the ViewRegistry, which discovers and registers every RegisterView-annotated View subclass under the host plugin's base package and instantiates each through the dependency manager.
  • Constructor Details

    • InventoryApiModule

      public InventoryApiModule()
  • Method Details

    • onInitialize

      public void onInitialize(Context context) throws Exception
      Specified by:
      onInitialize in interface Module
      Throws:
      Exception
    • onDisable

      public void onDisable()
      Shuts the shared pagination timeout scheduler down when the host plugin disables. Open sessions are already closed when this runs: ViewListener.onPluginDisable reacts to Bukkit's PluginDisableEvent, which fires before the context destroys its beans and invokes this hook, so no session can still be waiting on a timeout. The scheduler is recreated lazily on the next timeout-bearing request.