Package 

Object ConfigHelper


  • 
    public class ConfigHelper
    
                        

    Caches Config readers and prevents reloading of files.

    • Method Summary

      Modifier and Type Method Description
      final ConfigReader getConfig(File file) Retrieves or creates a config reader for the given file.
      final ConfigReader getConfig(String file) Returns a config based on the location of the given string.
      final ConfigReader getConfig(Resource resource) Returns a config reader based on the spring resource given.
      • Methods inherited from class java.lang.Object

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

      • getConfig

         final ConfigReader getConfig(File file)

        Retrieves or creates a config reader for the given file.

        Parameters:
        file - The file to find a ConfigReader for.
      • getConfig

         final ConfigReader getConfig(String file)

        Returns a config based on the location of the given string.

        Parameters:
        file - The string to find a config reader by.
      • getConfig

         final ConfigReader getConfig(Resource resource)

        Returns a config reader based on the spring resource given.

        Parameters:
        resource - The resource to find a config on.