Package de.wuespace.telestion.api.config
Class Config
java.lang.Object
de.wuespace.telestion.api.config.Config
Deprecated, for removal: This API element is subject to removal in a future version.
A utility class for the selection of configuration files.
-
Constructor Summary
ConstructorsConstructorDescriptionConfig()
Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> T
Deprecated, for removal: This API element is subject to removal in a future version.Selects the right configuration file.static <T> T
Deprecated, for removal: This API element is subject to removal in a future version.Selects the right configuration file.
-
Constructor Details
-
Config
public Config()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
get
Deprecated, for removal: This API element is subject to removal in a future version.Selects the right configuration file.- Type Parameters:
T
- defines the class type of the configuration- Parameters:
forcedConfig
- this config will be applied if it is not nullconfig
- this is common config which represents the config class in json. If fields are not available they will be set like the default values of the class when the default constructor is called.type
- the type of the config.- Returns:
- the selected configuration
-
get
public static <T> T get(T forcedConfig, T defaultConfig, io.vertx.core.json.JsonObject jsonConfig, Class<T> type)Deprecated, for removal: This API element is subject to removal in a future version.Selects the right configuration file.- Type Parameters:
T
- defines the class type of the configuration- Parameters:
forcedConfig
- this config will be applied if it is not nulldefaultConfig
- this config contains the default values which replace absent values in the JSON configjsonConfig
- this is common config which represents the config class in json. If fields are not available they will be set like the default values of the class when the default constructor is called.type
- the type of the config.- Returns:
- the selected configuration
-
TelestionVerticle