Class ConfigManager


  • public class ConfigManager
    extends java.lang.Object
    Manages an incoming Configuration and starts the corresponding IguanaConfig
    Author:
    f.conrads
    • Constructor Summary

      Constructors 
      Constructor Description
      ConfigManager()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void receiveData​(java.io.File configuration, java.lang.Boolean validate)
      Will receive a JSON or YAML configuration and executes the configuration as an Iguana Suite
      void startConfig​(IguanaConfig config)
      Starts the Config
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ConfigManager

        public ConfigManager()
    • Method Detail

      • receiveData

        public void receiveData​(java.io.File configuration,
                                java.lang.Boolean validate)
                         throws java.io.IOException
        Will receive a JSON or YAML configuration and executes the configuration as an Iguana Suite
        Parameters:
        configuration -
        validate - checks if error should be thrown if it validates the configuration given the iguana-schema.json schema
        Throws:
        java.io.IOException
      • startConfig

        public void startConfig​(IguanaConfig config)
        Starts the Config