Class PolyglotPropertiesBuilder

All Implemented Interfaces:
Flushable, Map<String,String>, org.refcodes.component.Flushable, org.refcodes.component.Flushable.FlushBuilder<ResourceProperties.ResourcePropertiesBuilder>, org.refcodes.mixin.AnnotatorAccessor, org.refcodes.mixin.Clearable, org.refcodes.mixin.DelimiterAccessor, org.refcodes.mixin.Dumpable, org.refcodes.mixin.EmptyAccessor, org.refcodes.mixin.TypeAccessor<String>, Properties, Properties.MutableProperties, Properties.PropertiesBuilder, ResourceProperties, ResourceProperties.MutableResoureProperties, ResourceProperties.ResourcePropertiesBuilder, org.refcodes.struct.CanonicalMap, org.refcodes.struct.CanonicalMap.CanonicalMapBuilder, org.refcodes.struct.CanonicalMap.MutableCanonicalMap, org.refcodes.struct.Containable, org.refcodes.struct.Dictionary<String,String>, org.refcodes.struct.Dictionary.MutableDictionary<String,String>, org.refcodes.struct.Dictionary.MutableDictionary.DictionaryBuilder<String,String,org.refcodes.struct.PathMap.PathMapBuilder<String>>, org.refcodes.struct.InterOperableMap<String>, org.refcodes.struct.InterOperableMap.InterOperableMapBuilder<String>, org.refcodes.struct.InterOperableMap.MutableInterOperableMap<String>, org.refcodes.struct.Keys<String,String>, org.refcodes.struct.Keys.MutableKeys<String,String>, org.refcodes.struct.Keys.MutableValues<String,String>, org.refcodes.struct.PathMap<String>, org.refcodes.struct.PathMap.MutablePathMap<String>, org.refcodes.struct.PathMap.PathMapBuilder<String>

Implementation of the ResourceProperties.ResourcePropertiesBuilder interface with support of so called "PolyglotPropertiesBuilder" (or just "properties"). For PolyglotPropertiesBuilder, see "https://en.wikipedia.org/wiki/.properties".
  • Constructor Details

    • PolyglotPropertiesBuilder

      public PolyglotPropertiesBuilder(Object aObj)
      Create a PolyglotPropertiesBuilder 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.
    • PolyglotPropertiesBuilder

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

      public PolyglotPropertiesBuilder(Properties.PropertiesBuilder aPropertiesBuilder)
      Create a PolyglotPropertiesBuilder instance containing the elements of the provided Properties.PropertiesBuilder instance using the default path delimiter "/" (Delimiter.PATH) for the path declarations
      Parameters:
      aPropertiesBuilder - the properties to be added.
    • PolyglotPropertiesBuilder

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

      public PolyglotPropertiesBuilder(File aFile) throws IOException, ParseException
      Loads the PolyglotPropertiesBuilder 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.
    • PolyglotPropertiesBuilder

      public PolyglotPropertiesBuilder(File aFile, char... aDelimiters) throws IOException, ParseException
      Loads the PolyglotPropertiesBuilder 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.
    • PolyglotPropertiesBuilder

      public PolyglotPropertiesBuilder(File aFile, org.refcodes.runtime.ConfigLocator aConfigLocator) throws IOException, ParseException
      Loads or seeks the PolyglotPropertiesBuilder from the given File. A provided ConfigLocator describes the locations to additional crawl for the desired file.
      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.
    • PolyglotPropertiesBuilder

      public PolyglotPropertiesBuilder(File aFile, org.refcodes.runtime.ConfigLocator aConfigLocator, char... aDelimiters) throws IOException, ParseException
      Loads or seeks the PolyglotPropertiesBuilder from the given File. A provided ConfigLocator describes the locations to additional crawl for the desired file.
      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.
    • PolyglotPropertiesBuilder

      public PolyglotPropertiesBuilder(String aFilePath) throws IOException, ParseException
      Loads the PolyglotPropertiesBuilder 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.
    • PolyglotPropertiesBuilder

      public PolyglotPropertiesBuilder(String aFilePath, char... aDelimiters) throws IOException, ParseException
      Loads the PolyglotPropertiesBuilder 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.
    • PolyglotPropertiesBuilder

      public PolyglotPropertiesBuilder(Class<?> aResourceClass, String aFilePath) throws IOException, ParseException
      Loads the PolyglotPropertiesBuilder 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.
    • PolyglotPropertiesBuilder

      public PolyglotPropertiesBuilder(Class<?> aResourceClass, String aFilePath, char... aDelimiters) throws IOException, ParseException
      Loads the PolyglotPropertiesBuilder 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.
    • PolyglotPropertiesBuilder

      public PolyglotPropertiesBuilder(String aFilePath, org.refcodes.runtime.ConfigLocator aConfigLocator) throws IOException, ParseException
      Loads the PolyglotPropertiesBuilder from the given file's path. A provided ConfigLocator describes the locations to additional crawl for the desired file.
      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.
    • PolyglotPropertiesBuilder

      public PolyglotPropertiesBuilder(String aFilePath, org.refcodes.runtime.ConfigLocator aConfigLocator, char... aDelimiters) throws IOException, ParseException
      Loads the PolyglotPropertiesBuilder from the given file's path. A provided ConfigLocator describes the locations to additional crawl for the desired file.
      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.
    • PolyglotPropertiesBuilder

      public PolyglotPropertiesBuilder(Class<?> aResourceClass, String aFilePath, org.refcodes.runtime.ConfigLocator aConfigLocator) throws IOException, ParseException
      Loads the PolyglotPropertiesBuilder from the given file's path. A provided ConfigLocator describes the locations to additional crawl for the desired file. Finally (if nothing else succeeds) the properties are loaded by the provided class's class loader which takes care of loading the properties (in case the file path is a relative path, also the absolute path with a prefixed path delimiter "/" is probed).
      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.
    • PolyglotPropertiesBuilder

      public PolyglotPropertiesBuilder(Class<?> aResourceClass, String aFilePath, org.refcodes.runtime.ConfigLocator aConfigLocator, char... aDelimiters) throws IOException, ParseException
      Loads the PolyglotPropertiesBuilder from the given file's path. A provided ConfigLocator describes the locations to additional crawl for the desired file. Finally (if nothing else succeeds) the properties are loaded by the provided class's class loader which takes care of loading the properties (in case the file path is a relative path, also the absolute path with a prefixed path delimiter "/" is probed).
      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.
    • PolyglotPropertiesBuilder

      public PolyglotPropertiesBuilder(URL aUrl) throws IOException, ParseException
      Loads the PolyglotPropertiesBuilder 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.
    • PolyglotPropertiesBuilder

      public PolyglotPropertiesBuilder(URL aUrl, char... aDelimiters) throws IOException, ParseException
      Loads the PolyglotPropertiesBuilder 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.
    • PolyglotPropertiesBuilder

      public PolyglotPropertiesBuilder(InputStream aInputStream) throws IOException, ParseException
      Reads the PolyglotPropertiesBuilder 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.
    • PolyglotPropertiesBuilder

      public PolyglotPropertiesBuilder(InputStream aInputStream, char... aDelimiters) throws IOException, ParseException
      Reads the PolyglotPropertiesBuilder 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.
    • PolyglotPropertiesBuilder

      public PolyglotPropertiesBuilder(PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory aPropertiesBuilderFactory, Object aObj)
      Create a PolyglotPropertiesBuilder 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:
      aPropertiesBuilderFactory - The factory to use when constructing ResourceProperties.ResourcePropertiesBuilder instances.
      aObj - The object from which the elements are to be added.
    • PolyglotPropertiesBuilder

      public PolyglotPropertiesBuilder(PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory aPropertiesBuilderFactory, Properties aProperties)
      Create a PolyglotPropertiesBuilder 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.
      aPropertiesBuilderFactory - The factory to use when constructing ResourceProperties.ResourcePropertiesBuilder instances.
    • PolyglotPropertiesBuilder

      public PolyglotPropertiesBuilder(PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory aPropertiesBuilderFactory, Properties.PropertiesBuilder aPropertiesBuilder)
      Create a PolyglotPropertiesBuilder instance containing the elements of the provided Properties.PropertiesBuilder instance using the default path delimiter "/" (Delimiter.PATH) for the path declarations
      Parameters:
      aPropertiesBuilder - the properties to be added.
      aPropertiesBuilderFactory - The factory to use when constructing ResourceProperties.ResourcePropertiesBuilder instances.
    • PolyglotPropertiesBuilder

      public PolyglotPropertiesBuilder(PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory aPropertiesBuilderFactory, Map<?,?> aPropertiesBuilder)
      Create a PolyglotPropertiesBuilder instance containing the elements of the provided Map instance using the default path delimiter "/" (Delimiter.PATH) for the path declarations
      Parameters:
      aPropertiesBuilderFactory - The factory to use when constructing ResourceProperties.ResourcePropertiesBuilder instances.
      aPropertiesBuilder - the properties to be added.
    • PolyglotPropertiesBuilder

      public PolyglotPropertiesBuilder(PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory aPropertiesBuilderFactory, File aFile) throws IOException, ParseException
      Loads the PolyglotPropertiesBuilder from the given File.
      Parameters:
      aFile - The File from which to load the properties.
      aPropertiesBuilderFactory - The factory to use when constructing ResourceProperties.ResourcePropertiesBuilder instances.
      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.
    • PolyglotPropertiesBuilder

      public PolyglotPropertiesBuilder(PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory aPropertiesBuilderFactory, File aFile, char... aDelimiters) throws IOException, ParseException
      Loads the PolyglotPropertiesBuilder 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.
      aPropertiesBuilderFactory - The factory to use when constructing ResourceProperties.ResourcePropertiesBuilder instances.
      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.
    • PolyglotPropertiesBuilder

      public PolyglotPropertiesBuilder(PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory aPropertiesBuilderFactory, File aFile, org.refcodes.runtime.ConfigLocator aConfigLocator) throws IOException, ParseException
      Loads or seeks the PolyglotPropertiesBuilder from the given File. A provided ConfigLocator describes the locations to additional crawl for the desired file.
      Parameters:
      aFile - The File from which to load the properties.
      aConfigLocator - The ConfigLocator describes the locations to additional crawl for the desired file.
      aPropertiesBuilderFactory - The factory to use when constructing ResourceProperties.ResourcePropertiesBuilder instances.
      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.
    • PolyglotPropertiesBuilder

      public PolyglotPropertiesBuilder(PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory aPropertiesBuilderFactory, File aFile, org.refcodes.runtime.ConfigLocator aConfigLocator, char... aDelimiters) throws IOException, ParseException
      Loads or seeks the PolyglotPropertiesBuilder from the given File. A provided ConfigLocator describes the locations to additional crawl for the desired file.
      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.
      aPropertiesBuilderFactory - The factory to use when constructing ResourceProperties.ResourcePropertiesBuilder instances.
      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.
    • PolyglotPropertiesBuilder

      public PolyglotPropertiesBuilder(PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory aPropertiesBuilderFactory, String aFilePath) throws IOException, ParseException
      Loads the PolyglotPropertiesBuilder from the given file's path.
      Parameters:
      aFilePath - The path to the file from which to load the properties.
      aPropertiesBuilderFactory - The factory to use when constructing ResourceProperties.ResourcePropertiesBuilder instances.
      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.
    • PolyglotPropertiesBuilder

      public PolyglotPropertiesBuilder(PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory aPropertiesBuilderFactory, String aFilePath, char... aDelimiters) throws IOException, ParseException
      Loads the PolyglotPropertiesBuilder 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.
      aPropertiesBuilderFactory - The factory to use when constructing ResourceProperties.ResourcePropertiesBuilder instances.
      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.
    • PolyglotPropertiesBuilder

      public PolyglotPropertiesBuilder(PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory aPropertiesBuilderFactory, Class<?> aResourceClass, String aFilePath) throws IOException, ParseException
      Loads the PolyglotPropertiesBuilder 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.
      aPropertiesBuilderFactory - The factory to use when constructing ResourceProperties.ResourcePropertiesBuilder instances.
      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.
    • PolyglotPropertiesBuilder

      public PolyglotPropertiesBuilder(PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory aPropertiesBuilderFactory, Class<?> aResourceClass, String aFilePath, char... aDelimiters) throws IOException, ParseException
      Loads the PolyglotPropertiesBuilder 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.
      aPropertiesBuilderFactory - The factory to use when constructing ResourceProperties.ResourcePropertiesBuilder instances.
      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.
    • PolyglotPropertiesBuilder

      public PolyglotPropertiesBuilder(PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory aPropertiesBuilderFactory, String aFilePath, org.refcodes.runtime.ConfigLocator aConfigLocator) throws IOException, ParseException
      Loads the PolyglotPropertiesBuilder from the given file's path. A provided ConfigLocator describes the locations to additional crawl for the desired file.
      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.
      aPropertiesBuilderFactory - The factory to use when constructing ResourceProperties.ResourcePropertiesBuilder instances.
      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.
    • PolyglotPropertiesBuilder

      public PolyglotPropertiesBuilder(PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory aPropertiesBuilderFactory, String aFilePath, org.refcodes.runtime.ConfigLocator aConfigLocator, char... aDelimiters) throws IOException, ParseException
      Loads the PolyglotPropertiesBuilder from the given file's path. A provided ConfigLocator describes the locations to additional crawl for the desired file.
      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.
      aPropertiesBuilderFactory - The factory to use when constructing ResourceProperties.ResourcePropertiesBuilder instances.
      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.
    • PolyglotPropertiesBuilder

      public PolyglotPropertiesBuilder(PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory aPropertiesBuilderFactory, Class<?> aResourceClass, String aFilePath, org.refcodes.runtime.ConfigLocator aConfigLocator) throws IOException, ParseException
      Loads the PolyglotPropertiesBuilder from the given file's path. A provided ConfigLocator describes the locations to additional crawl for the desired file. Finally (if nothing else succeeds) the properties are loaded by the provided class's class loader which takes care of loading the properties (in case the file path is a relative path, also the absolute path with a prefixed path delimiter "/" is probed).
      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.
      aPropertiesBuilderFactory - The factory to use when constructing ResourceProperties.ResourcePropertiesBuilder instances.
      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.
    • PolyglotPropertiesBuilder

      public PolyglotPropertiesBuilder(PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory aPropertiesBuilderFactory, Class<?> aResourceClass, String aFilePath, org.refcodes.runtime.ConfigLocator aConfigLocator, char... aDelimiters) throws IOException, ParseException
      Loads the PolyglotPropertiesBuilder from the given file's path. A provided ConfigLocator describes the locations to additional crawl for the desired file. Finally (if nothing else succeeds) the properties are loaded by the provided class's class loader which takes care of loading the properties (in case the file path is a relative path, also the absolute path with a prefixed path delimiter "/" is probed).
      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.
      aPropertiesBuilderFactory - The factory to use when constructing ResourceProperties.ResourcePropertiesBuilder instances.
      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.
    • PolyglotPropertiesBuilder

      public PolyglotPropertiesBuilder(PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory aPropertiesBuilderFactory, URL aUrl) throws IOException, ParseException
      Loads the PolyglotPropertiesBuilder from the given URL.
      Parameters:
      aUrl - The URL from which to read the properties.
      aPropertiesBuilderFactory - The factory to use when constructing ResourceProperties.ResourcePropertiesBuilder instances.
      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.
    • PolyglotPropertiesBuilder

      public PolyglotPropertiesBuilder(PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory aPropertiesBuilderFactory, URL aUrl, char... aDelimiters) throws IOException, ParseException
      Loads the PolyglotPropertiesBuilder 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.
      aPropertiesBuilderFactory - The factory to use when constructing ResourceProperties.ResourcePropertiesBuilder instances.
      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.
    • PolyglotPropertiesBuilder

      public PolyglotPropertiesBuilder(PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory aPropertiesBuilderFactory, InputStream aInputStream) throws IOException, ParseException
      Reads the PolyglotPropertiesBuilder from the given InputStream.
      Parameters:
      aInputStream - The InputStream from which to read the properties.
      aPropertiesBuilderFactory - The factory to use when constructing ResourceProperties.ResourcePropertiesBuilder instances.
      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.
    • PolyglotPropertiesBuilder

      public PolyglotPropertiesBuilder(PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory aPropertiesBuilderFactory, InputStream aInputStream, char... aDelimiters) throws IOException, ParseException
      Reads the PolyglotPropertiesBuilder 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.
      aPropertiesBuilderFactory - The factory to use when constructing ResourceProperties.ResourcePropertiesBuilder instances.
      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.