public interface ApplicationConfigProvider
ApplicationConfig.
Each library of application which use ApplicationConfig should
implements this and add the provider available via the
ServiceLoader mecanism.
Using such provider offers a nice way to find out what options can be loaded in a application. It also offers a simply way to generate application config report for documentation.
| Modifier and Type | Method and Description |
|---|---|
ConfigActionDef[] |
getActions()
Returns all actions offered by the configuration.
|
String |
getDescription(Locale locale)
Returns the localized description of the configuration.
|
String |
getName()
Returns the name of the provided application config.
|
ConfigOptionDef[] |
getOptions()
Returns all options offered by the configuration.
|
default ConfigModel |
toModel(Locale locale) |
String getName()
This should be the name of the library or application which offers the configuration.
String getDescription(Locale locale)
locale - locale used to render descriptionConfigOptionDef[] getOptions()
ConfigOptionDefConfigActionDef[] getActions()
ConfigActionDefdefault ConfigModel toModel(Locale locale)
Copyright © 2016–2018 Ultreia.io. All rights reserved.