Class OnConfigReloadBinder
java.lang.Object
tech.guilhermekaua.spigotboot.config.reload.OnConfigReloadBinder
Validates a single
@OnConfigReload method and registers the reload listener(s) it implies
on the DefaultConfigManager.-
Constructor Summary
ConstructorsConstructorDescriptionOnConfigReloadBinder(@NotNull DefaultConfigManager configManager, @NotNull OnConfigReloadInvoker invoker) Creates the binder. -
Method Summary
-
Constructor Details
-
OnConfigReloadBinder
public OnConfigReloadBinder(@NotNull @NotNull DefaultConfigManager configManager, @NotNull @NotNull OnConfigReloadInvoker invoker) Creates the binder.- Parameters:
configManager- the config manager, not nullinvoker- the reflective invoker, not null
-
-
Method Details
-
bind
Validates the method and registers reload listeners for every target config it declares.- Parameters:
bean- the owning bean instance, not nullmethod- a method annotated withOnConfigReload, not null- Throws:
ConfigException- if the method signature or targets are invalid
-