Class AbstractResourcePropertiesBuilder

    • Field Detail

      • _propertiesFile

        protected File _propertiesFile
    • Constructor Detail

      • AbstractResourcePropertiesBuilder

        protected AbstractResourcePropertiesBuilder​()
        Create an empty AbstractResourcePropertiesBuilder instance using the default path delimiter "/" (Delimiter.PATH) for the path declarations.
      • AbstractResourcePropertiesBuilder

        protected AbstractResourcePropertiesBuilder​(Object aObj)
        Create a AbstractResourcePropertiesBuilder instance containing the elements as of PathMap.MutablePathMap.insert(Object) using the default path delimiter "/" (Delimiter.PATH) for the path declarations: "Inspects the given object and adds all elements found in the given object. Elements of type Map, Collection and arrays are identified and handled as of their type: The path for each value in a Map is appended with its according key. The path for each value in a Collection or array is appended with its according index of occurrence (in case of a List or an array, its actual index). In case of reflection, the path for each member is appended with its according mamber's name. All elements (e.g. the members and values) are inspected recursively which results in the according paths of the terminating values."
        Parameters:
        aObj - The object from which the elements are to be added.
      • AbstractResourcePropertiesBuilder

        protected AbstractResourcePropertiesBuilder​(Properties aProperties)
        Create a AbstractResourcePropertiesBuilder instance containing the elements of the provided Properties instance using the default path delimiter "/" (Delimiter.PATH) for the path declarations
        Parameters:
        aProperties - the properties to be added.
      • AbstractResourcePropertiesBuilder

        protected AbstractResourcePropertiesBuilder​(Map<?,?> aProperties)
        Create a AbstractResourcePropertiesBuilder instance containing the elements of the provided Map instance using the default path delimiter "/" (Delimiter.PATH) for the path declarations
        Parameters:
        aProperties - the properties to be added.
      • AbstractResourcePropertiesBuilder

        protected AbstractResourcePropertiesBuilder​(File aFile)
                                             throws IOException,
                                                    ParseException
        Loads the properties from the given File.
        Parameters:
        aFile - The File from which to load the properties.
        Throws:
        IOException - thrown in case accessing or processing the properties file failed.
        ParseException - Signals that an error has been reached unexpectedly while parsing the data to be loaded.
      • AbstractResourcePropertiesBuilder

        protected AbstractResourcePropertiesBuilder​(File aFile,
                                                    char... aDelimiters)
                                             throws IOException,
                                                    ParseException
        Loads the properties from the given File.
        Parameters:
        aFile - The File from which to load the properties.
        aDelimiters - The path delimiters to be used when parsing the source's properties.
        Throws:
        IOException - thrown in case accessing or processing the properties file failed.
        ParseException - Signals that an error has been reached unexpectedly while parsing the data to be loaded.
      • AbstractResourcePropertiesBuilder

        protected AbstractResourcePropertiesBuilder​(File aFile,
                                                    org.refcodes.runtime.ConfigLocator aConfigLocator)
                                             throws IOException,
                                                    ParseException
        Loads or seeks the properties from the given File. In case you enable the "seek" argument, then the properties are, if the file does not exist, loaded from the first folder containing such a file as of the specification for the method ConfigLocator.getFolders().
        Parameters:
        aFile - The File from which to load the properties.
        aConfigLocator - The ConfigLocator describes the locations to additional crawl for the desired file.
        Throws:
        IOException - thrown in case accessing or processing the properties file failed.
        ParseException - Signals that an error has been reached unexpectedly while parsing the data to be loaded.
      • AbstractResourcePropertiesBuilder

        protected AbstractResourcePropertiesBuilder​(File aFile,
                                                    org.refcodes.runtime.ConfigLocator aConfigLocator,
                                                    char... aDelimiters)
                                             throws IOException,
                                                    ParseException
        Loads or seeks the properties from the given File. In case you enable the "seek" argument, then the properties are, if the file does not exist, loaded from the first folder containing such a file as of the specification for the method ConfigLocator.getFolders().
        Parameters:
        aFile - The File from which to load the properties.
        aConfigLocator - The ConfigLocator describes the locations to additional crawl for the desired file.
        aDelimiters - The path delimiters to be used when parsing the source's properties.
        Throws:
        IOException - thrown in case accessing or processing the properties file failed.
        ParseException - Signals that an error has been reached unexpectedly while parsing the data to be loaded.
      • AbstractResourcePropertiesBuilder

        public AbstractResourcePropertiesBuilder​(String aFilePath)
                                          throws IOException,
                                                 ParseException
        Loads the properties from the given file's path.
        Parameters:
        aFilePath - The path to the file from which to load the properties.
        Throws:
        IOException - thrown in case accessing or processing the properties file failed.
        ParseException - Signals that an error has been reached unexpectedly while parsing the data to be loaded.
      • AbstractResourcePropertiesBuilder

        protected AbstractResourcePropertiesBuilder​(String aFilePath,
                                                    char... aDelimiters)
                                             throws IOException,
                                                    ParseException
        Loads the properties from the given file's path.
        Parameters:
        aFilePath - The path to the file from which to load the properties.
        aDelimiters - The path delimiters to be used when parsing the source's properties.
        Throws:
        IOException - thrown in case accessing or processing the properties file failed.
        ParseException - Signals that an error has been reached unexpectedly while parsing the data to be loaded.
      • AbstractResourcePropertiesBuilder

        protected AbstractResourcePropertiesBuilder​(Class<?> aResourceClass,
                                                    String aFilePath)
                                             throws IOException,
                                                    ParseException
        Loads the properties from the given file's path.
        Parameters:
        aResourceClass - The class which's class loader is to take care of loading the properties (from inside a JAR).
        aFilePath - The file path of the class's resources from which to load the properties.
        Throws:
        IOException - thrown in case accessing or processing the properties file failed.
        ParseException - Signals that an error has been reached unexpectedly while parsing the data to be loaded.
      • AbstractResourcePropertiesBuilder

        protected AbstractResourcePropertiesBuilder​(Class<?> aResourceClass,
                                                    String aFilePath,
                                                    char... aDelimiters)
                                             throws IOException,
                                                    ParseException
        Loads the properties from the given file's path.
        Parameters:
        aResourceClass - The class which's class loader is to take care of loading the properties (from inside a JAR).
        aFilePath - The file path of the class's resources from which to load the properties.
        aDelimiters - The path delimiters to be used when parsing the source's properties.
        Throws:
        IOException - thrown in case accessing or processing the properties file failed.
        ParseException - Signals that an error has been reached unexpectedly while parsing the data to be loaded.
      • AbstractResourcePropertiesBuilder

        protected AbstractResourcePropertiesBuilder​(String aFilePath,
                                                    org.refcodes.runtime.ConfigLocator aConfigLocator)
                                             throws IOException,
                                                    ParseException
        Loads the properties from the given file's path. In case you enable the "seek" argument, then the properties are, if the file does not exist, loaded from the first folder containing such a file as of the specification for the method ConfigLocator.getFolders().
        Parameters:
        aFilePath - The path to the file from which to load the properties.
        aConfigLocator - The ConfigLocator describes the locations to additional crawl for the desired file.
        Throws:
        IOException - thrown in case accessing or processing the properties file failed.
        ParseException - Signals that an error has been reached unexpectedly while parsing the data to be loaded.
      • AbstractResourcePropertiesBuilder

        protected AbstractResourcePropertiesBuilder​(String aFilePath,
                                                    org.refcodes.runtime.ConfigLocator aConfigLocator,
                                                    char... aDelimiters)
                                             throws IOException,
                                                    ParseException
        Loads the properties from the given file's path. In case you enable the "seek" argument, then the properties are, if the file does not exist, loaded from the first folder containing such a file as of the specification for the method ConfigLocator.getFolders().
        Parameters:
        aFilePath - The path to the file from which to load the properties.
        aConfigLocator - The ConfigLocator describes the locations to additional crawl for the desired file.
        aDelimiters - The path delimiters to be used when parsing the source's properties.
        Throws:
        IOException - thrown in case accessing or processing the properties file failed.
        ParseException - Signals that an error has been reached unexpectedly while parsing the data to be loaded.
      • AbstractResourcePropertiesBuilder

        protected AbstractResourcePropertiesBuilder​(Class<?> aResourceClass,
                                                    String aFilePath,
                                                    org.refcodes.runtime.ConfigLocator aConfigLocator)
                                             throws IOException,
                                                    ParseException
        Loads the properties from the given file's path. In case you enable the "seek" argument, then the properties are, if the file does not exist, loaded from the first folder containing such a file as of the specification for the method ConfigLocator.getFolders().
        Parameters:
        aResourceClass - The class which's class loader is to take care of loading the properties (from inside a JAR).
        aFilePath - The file path of the class's resources from which to load the properties.
        aConfigLocator - The ConfigLocator describes the locations to additional crawl for the desired file.
        Throws:
        IOException - thrown in case accessing or processing the properties file failed.
        ParseException - Signals that an error has been reached unexpectedly while parsing the data to be loaded.
      • AbstractResourcePropertiesBuilder

        protected AbstractResourcePropertiesBuilder​(Class<?> aResourceClass,
                                                    String aFilePath,
                                                    org.refcodes.runtime.ConfigLocator aConfigLocator,
                                                    char... aDelimiters)
                                             throws IOException,
                                                    ParseException
        Loads the properties from the given file's path. In case you enable the "seek" argument, then the properties are, if the file does not exist, loaded from the first folder containing such a file as of the specification for the method ConfigLocator.getFolders().
        Parameters:
        aResourceClass - The class which's class loader is to take care of loading the properties (from inside a JAR).
        aFilePath - The file path of the class's resources from which to load the properties.
        aConfigLocator - The ConfigLocator describes the locations to additional crawl for the desired file.
        aDelimiters - The path delimiters to be used when parsing the source's properties.
        Throws:
        IOException - thrown in case accessing or processing the properties file failed.
        ParseException - Signals that an error has been reached unexpectedly while parsing the data to be loaded.
      • AbstractResourcePropertiesBuilder

        protected AbstractResourcePropertiesBuilder​(URL aUrl)
                                             throws IOException,
                                                    ParseException
        Loads the properties from the given URL.
        Parameters:
        aUrl - The URL from which to read the properties.
        Throws:
        IOException - thrown in case accessing or processing the properties file failed.
        ParseException - Signals that an error has been reached unexpectedly while parsing the data to be loaded.
      • AbstractResourcePropertiesBuilder

        protected AbstractResourcePropertiesBuilder​(URL aUrl,
                                                    char... aDelimiters)
                                             throws IOException,
                                                    ParseException
        Loads the properties from the given URL.
        Parameters:
        aUrl - The URL from which to read the properties.
        aDelimiters - The path delimiters to be used when parsing the source's properties.
        Throws:
        IOException - thrown in case accessing or processing the properties file failed.
        ParseException - Signals that an error has been reached unexpectedly while parsing the data to be loaded.
      • AbstractResourcePropertiesBuilder

        protected AbstractResourcePropertiesBuilder​(InputStream aInputStream)
                                             throws IOException,
                                                    ParseException
        Reads the properties from the given InputStream.
        Parameters:
        aInputStream - The InputStream from which to read the properties.
        Throws:
        IOException - thrown in case accessing or processing the properties file failed.
        ParseException - Signals that an error has been reached unexpectedly while parsing the data to be loaded.
      • AbstractResourcePropertiesBuilder

        protected AbstractResourcePropertiesBuilder​(InputStream aInputStream,
                                                    char... aDelimiters)
                                             throws IOException,
                                                    ParseException
        Reads the properties from the given InputStream.
        Parameters:
        aInputStream - The InputStream from which to read the properties.
        aDelimiters - The path delimiters to be used when parsing the source's properties.
        Throws:
        IOException - thrown in case accessing or processing the properties file failed.
        ParseException - Signals that an error has been reached unexpectedly while parsing the data to be loaded.