Interface ConfigProvider<T>
- Type Parameters:
T- the type of the configuration value provided
- All Known Subinterfaces:
ConfigRepository,LanguageProvider,WorldRepository
- All Known Implementing Classes:
BukkitConfigRepository,BukkitWorldRepository
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Represents a functional interface for retrieving dynamic configuration values.
A ConfigProvider wraps a Supplier, enabling
deferred and always up-to-date access to individual settings defined in the plugin’s
config.yml file.
Typical usage includes injecting implementations such as LanguageProvider
or LocaleProvider into dependent classes that require access to language
tags, locales, or other server-defined options.
This abstraction decouples configuration access from implementation details, promoting testability and runtime flexibility.
-
Method Summary
-
Method Details
-
get
T get()
-