Class DefaultConfigurationBuilder


  • public class DefaultConfigurationBuilder
    extends Object
    This class creates a default configuration if no valid configuration file is found.
    • Constructor Detail

      • DefaultConfigurationBuilder

        public DefaultConfigurationBuilder​(File location)
        Constructor. A location for the file may be specified or left null,
    • Method Detail

      • getConfigFile

        public File getConfigFile()
      • getDefaultConfigParameters

        protected String[] getDefaultConfigParameters​(Class<?> c)
        We can't have a static method in an Interface and override it, so we have to get a bit ugly to fake static inheritance. The advantage of this is that only the Modules with non-null default config file parameters have to implement the defaultConfigParams static field.