Class InventoryApiModule
java.lang.Object
tech.guilhermekaua.spigotboot.inventoryapi.InventoryApiModule
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidShuts the shared pagination timeout scheduler down when the host plugin disables.voidonInitialize(Context context)
-
Constructor Details
-
InventoryApiModule
public InventoryApiModule()
-
-
Method Details
-
onInitialize
- Specified by:
onInitializein interfaceModule- 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.onPluginDisablereacts to Bukkit'sPluginDisableEvent, 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.
-