Class ConfigurationFactory

java.lang.Object
is.galia.config.ConfigurationFactory

public final class ConfigurationFactory extends Object
  • Method Details

    • fromPath

      public static Configuration fromPath(Path path) throws IOException
      Parameters:
      path - Configuration file path.
      Returns:
      New instance for the given path.
      Throws:
      IOException
    • newProviderFromPath

      public static ConfigurationProvider newProviderFromPath(Path path) throws IOException
      Parameters:
      path - Configuration file path.
      Returns:
      New instance suitable for using as the application configuration. The instance will contain an EnvironmentConfiguration at position 0 and a YAMLConfiguration at position 1.
      Throws:
      IOException - if there is an error reading the file.
    • setAppInstance

      public static void setAppInstance(Configuration config)