Class ConfigModule

java.lang.Object
tech.guilhermekaua.spigotboot.config.ConfigModule
All Implemented Interfaces:
Module

public class ConfigModule extends Object implements Module
Configuration module for Spigot Boot. Platform-neutral: the same module serves Spigot and Bungee.

Scans for @Config and @FolderConfig annotated classes, loads configs, and registers them as beans.

Runs early (after the platform core module — Spigot or Bungee — which registers the plugin at @Order(-1000), but before default-order modules) so that @Config beans are registered before any later module resolves a component that depends on them. Without this, a module such as data-jdbc could be initialized first and instantiate a config-dependent component with a not-yet-registered config, reintroducing the null-injection bug this ordering guards against.

  • Constructor Details

    • ConfigModule

      public ConfigModule()
  • Method Details