Class Config

java.lang.Object
de.wuespace.telestion.api.config.Config

@Deprecated(since="0.6.0", forRemoval=true) public final class Config extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
replaced by TelestionVerticle
A utility class for the selection of configuration files.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static <T> T
    get​(T forcedConfig, io.vertx.core.json.JsonObject config, Class<T> type)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Selects the right configuration file.
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Config

      public Config()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • get

      public static <T> T get(T forcedConfig, io.vertx.core.json.JsonObject config, 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 null
      config - 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 null
      defaultConfig - this config contains the default values which replace absent values in the JSON config
      jsonConfig - 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