Class ConfigLoader

java.lang.Object
com.github.wasiqb.coteafs.config.loader.ConfigLoader

public class ConfigLoader
extends java.lang.Object
Since:
06-Sep-2019
Author:
Wasiq Bhamla
  • Method Summary

    Modifier and Type Method Description
    <T> T load​(java.lang.Class<T> cls)  
    static ConfigLoader settings()  
    ConfigLoader withDefault​(java.lang.String defaultValue)  
    ConfigLoader withKey​(java.lang.String configKey)  

    Methods inherited from class java.lang.Object

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

    • settings

      public static ConfigLoader settings()
      Returns:
      config
      Since:
      06-Sep-2019
    • load

      public <T> T load​(java.lang.Class<T> cls)
      Type Parameters:
      T - any object
      Parameters:
      cls - class
      Returns:
      config object
      Since:
      06-Sep-2019
    • withDefault

      public ConfigLoader withDefault​(java.lang.String defaultValue)
      Parameters:
      defaultValue - default value
      Returns:
      current instance
      Since:
      06-Sep-2019
    • withKey

      public ConfigLoader withKey​(java.lang.String configKey)
      Parameters:
      configKey - config key
      Returns:
      current instance
      Since:
      06-Sep-2019