Properties
, ResourceProperties
, org.refcodes.mixin.DelimiterAccessor
, org.refcodes.mixin.Dumpable
, org.refcodes.mixin.TypeAccessor<String>
, org.refcodes.structure.CanonicalMap
, org.refcodes.structure.Containable
, org.refcodes.structure.Dictionary<String,String>
, org.refcodes.structure.Keys<String,String>
, org.refcodes.structure.PathMap<String>
, org.refcodes.structure.PropertiesAccessorMixin
public class PolyglotProperties extends AbstractResourcePropertiesDecorator<ResourceProperties> implements ResourceProperties
ResourceProperties
interface with support of so
called "PolyglotProperties
" (or just "properties").
For PolyglotProperties
, see
"https://en.wikipedia.org/wiki/.properties".Modifier and Type | Class | Description |
---|---|---|
static class |
PolyglotProperties.PolyglotPropertiesFactory |
The
PolyglotProperties.PolyglotPropertiesFactory is a meta factory using a
collection of ResourcePropertiesFactory instances to deliver
ResourceProperties instances. |
org.refcodes.structure.CanonicalMap.CanonicalMapBuilder, org.refcodes.structure.CanonicalMap.MutableCanonicalMap
org.refcodes.mixin.DelimiterAccessor.DelimiterBuilder<B extends org.refcodes.mixin.DelimiterAccessor.DelimiterBuilder<B>>, org.refcodes.mixin.DelimiterAccessor.DelimiterMutator, org.refcodes.mixin.DelimiterAccessor.DelimiterProperty
org.refcodes.structure.Dictionary.MutableDictionary<K extends Object,V extends Object>
org.refcodes.structure.Keys.MutableKeys<K extends Object,V extends Object>, org.refcodes.structure.Keys.MutableValues<K extends Object,V extends Object>
org.refcodes.structure.PathMap.MutablePathMap<T extends Object>, org.refcodes.structure.PathMap.PathMapBuilder<T extends Object>
Properties.MutableProperties, Properties.PropertiesBuilder
org.refcodes.structure.PropertiesAccessorMixin.PropertiesBuilderMixin<T extends Object>, org.refcodes.structure.PropertiesAccessorMixin.PropertiesMixin, org.refcodes.structure.PropertiesAccessorMixin.PropertiesMutatorMixin
ResourceProperties.MutableResoureProperties, ResourceProperties.ResourcePropertiesBuilder
DEFAULT_COMMENT
VALUE_ATTRIBUTES
Constructor | Description |
---|---|
PolyglotProperties(File aFile) |
Loads the
PolyglotProperties from the given File . |
PolyglotProperties(File aFile,
char... aDelimiters) |
Loads the
PolyglotProperties from the given File . |
PolyglotProperties(File aFile,
org.refcodes.runtime.ConfigLocator aConfigLocator) |
Loads or seeks the
PolyglotProperties from the given
File . |
PolyglotProperties(File aFile,
org.refcodes.runtime.ConfigLocator aConfigLocator,
char... aDelimiters) |
Loads or seeks the
PolyglotProperties from the given
File . |
PolyglotProperties(InputStream aInputStream) |
Reads the
PolyglotProperties from the given InputStream . |
PolyglotProperties(InputStream aInputStream,
char... aDelimiters) |
Reads the
PolyglotProperties from the given InputStream . |
PolyglotProperties(Class<?> aResourceClass,
String aFilePath) |
Loads the
PolyglotProperties from the given file's path. |
PolyglotProperties(Class<?> aResourceClass,
String aFilePath,
char... aDelimiters) |
Loads the
PolyglotProperties from the given file's path. |
PolyglotProperties(Class<?> aResourceClass,
String aFilePath,
org.refcodes.runtime.ConfigLocator aConfigLocator) |
Loads the
PolyglotProperties from the given file's path. |
PolyglotProperties(Class<?> aResourceClass,
String aFilePath,
org.refcodes.runtime.ConfigLocator aConfigLocator,
char... aDelimiters) |
Loads the
PolyglotProperties from the given file's path. |
PolyglotProperties(Object aObj) |
Create a
PolyglotProperties 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. |
PolyglotProperties(String aFilePath) |
Loads the
PolyglotProperties from the given file's path. |
PolyglotProperties(String aFilePath,
char... aDelimiters) |
Loads the
PolyglotProperties from the given file's path. |
PolyglotProperties(String aFilePath,
org.refcodes.runtime.ConfigLocator aConfigLocator) |
Loads the
PolyglotProperties from the given file's path. |
PolyglotProperties(String aFilePath,
org.refcodes.runtime.ConfigLocator aConfigLocator,
char... aDelimiters) |
Loads the
PolyglotProperties from the given file's path. |
PolyglotProperties(URL aUrl) |
Loads the
PolyglotProperties from the given URL . |
PolyglotProperties(URL aUrl,
char... aDelimiters) |
Loads the
PolyglotProperties from the given URL . |
PolyglotProperties(Map<?,?> aProperties) |
Create a
PolyglotProperties instance containing the elements of
the provided Map instance using the default path delimiter "/"
(Delimiter.PATH ) for the path declarations |
PolyglotProperties(PolyglotProperties.PolyglotPropertiesFactory aPropertiesFactory,
File aFile) |
Loads the
PolyglotProperties from the given File . |
PolyglotProperties(PolyglotProperties.PolyglotPropertiesFactory aPropertiesFactory,
File aFile,
char... aDelimiters) |
Loads the
PolyglotProperties from the given File . |
PolyglotProperties(PolyglotProperties.PolyglotPropertiesFactory aPropertiesFactory,
File aFile,
org.refcodes.runtime.ConfigLocator aConfigLocator) |
Loads or seeks the
PolyglotProperties from the given
File . |
PolyglotProperties(PolyglotProperties.PolyglotPropertiesFactory aPropertiesFactory,
File aFile,
org.refcodes.runtime.ConfigLocator aConfigLocator,
char... aDelimiters) |
Loads or seeks the
PolyglotProperties from the given
File . |
PolyglotProperties(PolyglotProperties.PolyglotPropertiesFactory aPropertiesFactory,
InputStream aInputStream) |
Reads the
PolyglotProperties from the given InputStream . |
PolyglotProperties(PolyglotProperties.PolyglotPropertiesFactory aPropertiesFactory,
InputStream aInputStream,
char... aDelimiters) |
Reads the
PolyglotProperties from the given InputStream . |
PolyglotProperties(PolyglotProperties.PolyglotPropertiesFactory aPropertiesFactory,
Class<?> aResourceClass,
String aFilePath) |
Loads the
PolyglotProperties from the given file's path. |
PolyglotProperties(PolyglotProperties.PolyglotPropertiesFactory aPropertiesFactory,
Class<?> aResourceClass,
String aFilePath,
char... aDelimiters) |
Loads the
PolyglotProperties from the given file's path. |
PolyglotProperties(PolyglotProperties.PolyglotPropertiesFactory aPropertiesFactory,
Class<?> aResourceClass,
String aFilePath,
org.refcodes.runtime.ConfigLocator aConfigLocator) |
Loads the
PolyglotProperties from the given file's path. |
PolyglotProperties(PolyglotProperties.PolyglotPropertiesFactory aPropertiesFactory,
Class<?> aResourceClass,
String aFilePath,
org.refcodes.runtime.ConfigLocator aConfigLocator,
char... aDelimiters) |
Loads the
PolyglotProperties from the given file's path. |
PolyglotProperties(PolyglotProperties.PolyglotPropertiesFactory aPropertiesFactory,
Object aObj) |
Create a
PolyglotProperties 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. |
PolyglotProperties(PolyglotProperties.PolyglotPropertiesFactory aPropertiesFactory,
String aFilePath) |
Loads the
PolyglotProperties from the given file's path. |
PolyglotProperties(PolyglotProperties.PolyglotPropertiesFactory aPropertiesFactory,
String aFilePath,
char... aDelimiters) |
Loads the
PolyglotProperties from the given file's path. |
PolyglotProperties(PolyglotProperties.PolyglotPropertiesFactory aPropertiesFactory,
String aFilePath,
org.refcodes.runtime.ConfigLocator aConfigLocator) |
Loads the
PolyglotProperties from the given file's path. |
PolyglotProperties(PolyglotProperties.PolyglotPropertiesFactory aPropertiesFactory,
String aFilePath,
org.refcodes.runtime.ConfigLocator aConfigLocator,
char... aDelimiters) |
Loads the
PolyglotProperties from the given file's path. |
PolyglotProperties(PolyglotProperties.PolyglotPropertiesFactory aPropertiesFactory,
URL aUrl) |
Loads the
PolyglotProperties from the given URL . |
PolyglotProperties(PolyglotProperties.PolyglotPropertiesFactory aPropertiesFactory,
URL aUrl,
char... aDelimiters) |
Loads the
PolyglotProperties from the given URL . |
PolyglotProperties(PolyglotProperties.PolyglotPropertiesFactory aPropertiesFactory,
Map<?,?> aProperties) |
Create a
PolyglotProperties instance containing the elements of
the provided Map instance using the default path delimiter "/"
(Delimiter.PATH ) for the path declarations |
PolyglotProperties(PolyglotProperties.PolyglotPropertiesFactory aPropertiesFactory,
Properties aProperties) |
Create a
PolyglotProperties instance containing the elements of
the provided Properties instance using the default path delimiter
"/" (Delimiter.PATH ) for the path declarations |
PolyglotProperties(PolyglotProperties.PolyglotPropertiesFactory aPropertiesFactory,
Properties.PropertiesBuilder aProperties) |
Create a
PolyglotProperties instance containing the elements of
the provided Properties.PropertiesBuilder instance using the default path
delimiter "/" (Delimiter.PATH ) for the path declarations |
PolyglotProperties(Properties aProperties) |
Create a
PolyglotProperties instance containing the elements of
the provided Properties instance using the default path delimiter
"/" (Delimiter.PATH ) for the path declarations |
PolyglotProperties(Properties.PropertiesBuilder aProperties) |
Create a
PolyglotProperties instance containing the elements of
the provided Properties.PropertiesBuilder instance using the default path
delimiter "/" (Delimiter.PATH ) for the path declarations |
childrenOf, containsKey, get, getDelimiter, getProperties, isEmpty, keySet, retrieveFrom, retrieveTo, setProperties, size, toDataStructure, values
reload, reload
toInstance, toInstance, toType, toType
containsKey, get, get, keySet, use, values
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
directories, directories, entries, entries, fromExternalKey, getArray, getArray, getRootPath, hasParentPath, isArray, isArray, isDirectory, isEntry, isRecord, isRootPath, keySet, paths, paths, records, records, toDataStructure, toDataStructure, toExternalKey, toMap, toNormalizedPath, toNormalizedPath, toParentPath, toPath
childrenOf, containsValue, getDelimiter, getType, retrieve, retrieveFrom, retrieveTo, toMap, toProperties, toPropertyPath
containsKey, get, getBoolean, getBoolean, getByte, getByte, getCharacter, getCharacter, getDouble, getDouble, getFloat, getFloat, getInteger, getInteger, getLong, getLong, getShort, getShort, use, useBoolean, useBoolean, useByte, useByte, useDouble, useDouble, useFloat, useFloat, useInteger, useInteger, useLong, useLong, useShort, useShort
reload, reload
public PolyglotProperties(Object aObj)
PolyglotProperties
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."aObj
- The object from which the elements are to be added.public PolyglotProperties(Properties aProperties)
PolyglotProperties
instance containing the elements of
the provided Properties
instance using the default path delimiter
"/" (Delimiter.PATH
) for the path declarationsaProperties
- the properties to be added.public PolyglotProperties(Properties.PropertiesBuilder aProperties)
PolyglotProperties
instance containing the elements of
the provided Properties.PropertiesBuilder
instance using the default path
delimiter "/" (Delimiter.PATH
) for the path declarationsaProperties
- the properties to be added.public PolyglotProperties(Map<?,?> aProperties)
PolyglotProperties
instance containing the elements of
the provided Map
instance using the default path delimiter "/"
(Delimiter.PATH
) for the path declarationsaProperties
- the properties to be added.public PolyglotProperties(File aFile) throws IOException, ParseException
PolyglotProperties
from the given File
.aFile
- The File
from which to load the properties.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.public PolyglotProperties(File aFile, char... aDelimiters) throws IOException, ParseException
PolyglotProperties
from the given File
.aFile
- The File
from which to load the properties.aDelimiters
- The path delimiters to be used when parsing the
source's properties.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.public PolyglotProperties(File aFile, org.refcodes.runtime.ConfigLocator aConfigLocator) throws IOException, ParseException
PolyglotProperties
from the given
File
.
A provided ConfigLocator
describes the locations to additional
crawl for the desired file.aFile
- The File
from which to load the properties.aConfigLocator
- The ConfigLocator
describes the locations
to additional crawl for the desired file.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.public PolyglotProperties(File aFile, org.refcodes.runtime.ConfigLocator aConfigLocator, char... aDelimiters) throws IOException, ParseException
PolyglotProperties
from the given
File
.
A provided ConfigLocator
describes the locations to additional
crawl for the desired file.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.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.public PolyglotProperties(String aFilePath) throws IOException, ParseException
PolyglotProperties
from the given file's path.aFilePath
- The path to the file from which to load the properties.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.public PolyglotProperties(String aFilePath, char... aDelimiters) throws IOException, ParseException
PolyglotProperties
from the given file's path.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.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.public PolyglotProperties(Class<?> aResourceClass, String aFilePath) throws IOException, ParseException
PolyglotProperties
from the given file's path.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.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.public PolyglotProperties(Class<?> aResourceClass, String aFilePath, char... aDelimiters) throws IOException, ParseException
PolyglotProperties
from the given file's path.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.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.public PolyglotProperties(String aFilePath, org.refcodes.runtime.ConfigLocator aConfigLocator) throws IOException, ParseException
PolyglotProperties
from the given file's path.
A provided ConfigLocator
describes the locations to additional
crawl for the desired file.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.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.public PolyglotProperties(String aFilePath, org.refcodes.runtime.ConfigLocator aConfigLocator, char... aDelimiters) throws IOException, ParseException
PolyglotProperties
from the given file's path.
A provided ConfigLocator
describes the locations to additional
crawl for the desired file.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.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.public PolyglotProperties(Class<?> aResourceClass, String aFilePath, org.refcodes.runtime.ConfigLocator aConfigLocator) throws IOException, ParseException
PolyglotProperties
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).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.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.public PolyglotProperties(Class<?> aResourceClass, String aFilePath, org.refcodes.runtime.ConfigLocator aConfigLocator, char... aDelimiters) throws IOException, ParseException
PolyglotProperties
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).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.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.public PolyglotProperties(URL aUrl) throws IOException, ParseException
PolyglotProperties
from the given URL
.aUrl
- The URL
from which to read the properties.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.public PolyglotProperties(URL aUrl, char... aDelimiters) throws IOException, ParseException
PolyglotProperties
from the given URL
.aUrl
- The URL
from which to read the properties.aDelimiters
- The path delimiters to be used when parsing the
source's properties.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.public PolyglotProperties(InputStream aInputStream) throws IOException, ParseException
PolyglotProperties
from the given InputStream
.aInputStream
- The InputStream
from which to read the
properties.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.public PolyglotProperties(InputStream aInputStream, char... aDelimiters) throws IOException, ParseException
PolyglotProperties
from the given InputStream
.aInputStream
- The InputStream
from which to read the
properties.aDelimiters
- The path delimiters to be used when parsing the
source's properties.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.public PolyglotProperties(PolyglotProperties.PolyglotPropertiesFactory aPropertiesFactory, Object aObj)
PolyglotProperties
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."aPropertiesFactory
- The factory to use when constructing
ResourceProperties
instances.aObj
- The object from which the elements are to be added.public PolyglotProperties(PolyglotProperties.PolyglotPropertiesFactory aPropertiesFactory, Properties aProperties)
PolyglotProperties
instance containing the elements of
the provided Properties
instance using the default path delimiter
"/" (Delimiter.PATH
) for the path declarationsaProperties
- the properties to be added.aPropertiesFactory
- The factory to use when constructing
ResourceProperties
instances.public PolyglotProperties(PolyglotProperties.PolyglotPropertiesFactory aPropertiesFactory, Properties.PropertiesBuilder aProperties)
PolyglotProperties
instance containing the elements of
the provided Properties.PropertiesBuilder
instance using the default path
delimiter "/" (Delimiter.PATH
) for the path declarationsaProperties
- the properties to be added.aPropertiesFactory
- The factory to use when constructing
ResourceProperties
instances.public PolyglotProperties(PolyglotProperties.PolyglotPropertiesFactory aPropertiesFactory, Map<?,?> aProperties)
PolyglotProperties
instance containing the elements of
the provided Map
instance using the default path delimiter "/"
(Delimiter.PATH
) for the path declarationsaPropertiesFactory
- The factory to use when constructing
ResourceProperties
instances.aProperties
- the properties to be added.public PolyglotProperties(PolyglotProperties.PolyglotPropertiesFactory aPropertiesFactory, File aFile) throws IOException, ParseException
PolyglotProperties
from the given File
.aFile
- The File
from which to load the properties.aPropertiesFactory
- The factory to use when constructing
ResourceProperties
instances.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.public PolyglotProperties(PolyglotProperties.PolyglotPropertiesFactory aPropertiesFactory, File aFile, char... aDelimiters) throws IOException, ParseException
PolyglotProperties
from the given File
.aFile
- The File
from which to load the properties.aDelimiters
- The path delimiters to be used when parsing the
source's properties.aPropertiesFactory
- The factory to use when constructing
ResourceProperties
instances.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.public PolyglotProperties(PolyglotProperties.PolyglotPropertiesFactory aPropertiesFactory, File aFile, org.refcodes.runtime.ConfigLocator aConfigLocator) throws IOException, ParseException
PolyglotProperties
from the given
File
.
A provided ConfigLocator
describes the locations to additional
crawl for the desired file.aFile
- The File
from which to load the properties.aConfigLocator
- The ConfigLocator
describes the locations
to additional crawl for the desired file.aPropertiesFactory
- The factory to use when constructing
ResourceProperties
instances.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.public PolyglotProperties(PolyglotProperties.PolyglotPropertiesFactory aPropertiesFactory, File aFile, org.refcodes.runtime.ConfigLocator aConfigLocator, char... aDelimiters) throws IOException, ParseException
PolyglotProperties
from the given
File
.
A provided ConfigLocator
describes the locations to additional
crawl for the desired file.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.aPropertiesFactory
- The factory to use when constructing
ResourceProperties
instances.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.public PolyglotProperties(PolyglotProperties.PolyglotPropertiesFactory aPropertiesFactory, String aFilePath) throws IOException, ParseException
PolyglotProperties
from the given file's path.aFilePath
- The path to the file from which to load the properties.aPropertiesFactory
- The factory to use when constructing
ResourceProperties
instances.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.public PolyglotProperties(PolyglotProperties.PolyglotPropertiesFactory aPropertiesFactory, String aFilePath, char... aDelimiters) throws IOException, ParseException
PolyglotProperties
from the given file's path.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.aPropertiesFactory
- The factory to use when constructing
ResourceProperties
instances.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.public PolyglotProperties(PolyglotProperties.PolyglotPropertiesFactory aPropertiesFactory, Class<?> aResourceClass, String aFilePath) throws IOException, ParseException
PolyglotProperties
from the given file's path.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.aPropertiesFactory
- The factory to use when constructing
ResourceProperties
instances.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.public PolyglotProperties(PolyglotProperties.PolyglotPropertiesFactory aPropertiesFactory, Class<?> aResourceClass, String aFilePath, char... aDelimiters) throws IOException, ParseException
PolyglotProperties
from the given file's path.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.aPropertiesFactory
- The factory to use when constructing
ResourceProperties
instances.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.public PolyglotProperties(PolyglotProperties.PolyglotPropertiesFactory aPropertiesFactory, String aFilePath, org.refcodes.runtime.ConfigLocator aConfigLocator) throws IOException, ParseException
PolyglotProperties
from the given file's path.
A provided ConfigLocator
describes the locations to additional
crawl for the desired file.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.aPropertiesFactory
- The factory to use when constructing
ResourceProperties
instances.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.public PolyglotProperties(PolyglotProperties.PolyglotPropertiesFactory aPropertiesFactory, String aFilePath, org.refcodes.runtime.ConfigLocator aConfigLocator, char... aDelimiters) throws IOException, ParseException
PolyglotProperties
from the given file's path.
A provided ConfigLocator
describes the locations to additional
crawl for the desired file.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.aPropertiesFactory
- The factory to use when constructing
ResourceProperties
instances.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.public PolyglotProperties(PolyglotProperties.PolyglotPropertiesFactory aPropertiesFactory, Class<?> aResourceClass, String aFilePath, org.refcodes.runtime.ConfigLocator aConfigLocator) throws IOException, ParseException
PolyglotProperties
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).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.aPropertiesFactory
- The factory to use when constructing
ResourceProperties
instances.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.public PolyglotProperties(PolyglotProperties.PolyglotPropertiesFactory aPropertiesFactory, Class<?> aResourceClass, String aFilePath, org.refcodes.runtime.ConfigLocator aConfigLocator, char... aDelimiters) throws IOException, ParseException
PolyglotProperties
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).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.aPropertiesFactory
- The factory to use when constructing
ResourceProperties
instances.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.public PolyglotProperties(PolyglotProperties.PolyglotPropertiesFactory aPropertiesFactory, URL aUrl) throws IOException, ParseException
PolyglotProperties
from the given URL
.aUrl
- The URL
from which to read the properties.aPropertiesFactory
- The factory to use when constructing
ResourceProperties
instances.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.public PolyglotProperties(PolyglotProperties.PolyglotPropertiesFactory aPropertiesFactory, URL aUrl, char... aDelimiters) throws IOException, ParseException
PolyglotProperties
from the given URL
.aUrl
- The URL
from which to read the properties.aDelimiters
- The path delimiters to be used when parsing the
source's properties.aPropertiesFactory
- The factory to use when constructing
ResourceProperties
instances.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.public PolyglotProperties(PolyglotProperties.PolyglotPropertiesFactory aPropertiesFactory, InputStream aInputStream) throws IOException, ParseException
PolyglotProperties
from the given InputStream
.aInputStream
- The InputStream
from which to read the
properties.aPropertiesFactory
- The factory to use when constructing
ResourceProperties
instances.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.public PolyglotProperties(PolyglotProperties.PolyglotPropertiesFactory aPropertiesFactory, InputStream aInputStream, char... aDelimiters) throws IOException, ParseException
PolyglotProperties
from the given InputStream
.aInputStream
- The InputStream
from which to read the
properties.aDelimiters
- The path delimiters to be used when parsing the
source's properties.aPropertiesFactory
- The factory to use when constructing
ResourceProperties
instances.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.Copyright © 2018. All rights reserved.