public class RuntimePropertiesBuilderImpl extends org.refcodes.structure.impls.ProfilePropertiesBuilderImpl implements RuntimeProperties.RuntimePropertiesBuilder
RuntimeProperties.RuntimePropertiesBuilder interface.AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>org.refcodes.structure.Dictionary.MutableDictionary.DictionaryBuilder<K,V,B extends org.refcodes.structure.Dictionary.MutableDictionary.DictionaryBuilder<K,V,B>>RuntimeProperties.MutableRuntimeProperties, RuntimeProperties.RuntimePropertiesBuilderorg.refcodes.structure.ProfileProperties.MutableProfileProperties, org.refcodes.structure.ProfileProperties.ProfilePropertiesBuilderorg.refcodes.structure.Properties.MutableProperties, org.refcodes.structure.Properties.PropertiesBuilderorg.refcodes.structure.CanonicalMap.CanonicalMapBuilder, org.refcodes.structure.CanonicalMap.MutableCanonicalMaporg.refcodes.structure.PathMap.MutablePathMap<T>, org.refcodes.structure.PathMap.PathMapBuilder<T>org.refcodes.structure.Dictionary.MutableDictionary<K,V>org.refcodes.mixin.DelimiterAccessor.DelimiterBuilder<B extends org.refcodes.mixin.DelimiterAccessor.DelimiterBuilder<B>>, org.refcodes.mixin.DelimiterAccessor.DelimiterMutator, org.refcodes.mixin.DelimiterAccessor.DelimiterProperty| Modifier and Type | Field and Description |
|---|---|
protected File |
_propertiesFile |
| Constructor and Description |
|---|
RuntimePropertiesBuilderImpl()
Instantiates a new runtime properties builder impl.
|
RuntimePropertiesBuilderImpl(File aPropertiesFile)
Loads a properties file from the file directly or (if not found) from
first folder containing such a file as of the specification for the
method
RuntimeUtility.toAppConfigDirs(). |
RuntimePropertiesBuilderImpl(InputStream aInputStream)
Instantiates a new runtime properties builder impl.
|
RuntimePropertiesBuilderImpl(Map<?,?> aProperties)
Instantiates a new runtime properties builder impl.
|
RuntimePropertiesBuilderImpl(org.refcodes.structure.Properties aProperties)
Instantiates a new runtime properties builder impl.
|
RuntimePropertiesBuilderImpl(String aPropertiesFile)
Loads a properties file from the file directly or (if not found) from
first folder containing such a file as of the specification for the
method
RuntimeUtility.toAppConfigDirs(). |
RuntimePropertiesBuilderImpl(URL aURL)
Instantiates a new runtime properties builder impl.
|
| Modifier and Type | Method and Description |
|---|---|
void |
flush()
Writes the properties back to the file from which the properties were
loaded, e.g. see
Properties.saveTo(File, String) or
Properties.saveTo(String). |
protected void |
fromFile(File aFile)
From file.
|
String |
get(Object aKey) |
RuntimeProperties.RuntimePropertiesBuilder |
retrieveFrom(String aFromPath)
Retrieve from.
|
RuntimeProperties.RuntimePropertiesBuilder |
retrieveTo(String aToPath)
Retrieve to.
|
getRuntimeProfilesPathcompute, computeIfAbsent, computeIfPresent, containsKey, getDelimiter, getOrDefault, getType, merge, put, putIfAbsent, remove, remove, replace, replace, toDataStructureclear, clone, containsValue, entrySet, forEach, isEmpty, keySet, putAll, replaceAll, size, valuesequals, hashCode, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitretrieve, toRuntimePropertiesBuilder, toRuntimePropertiesBuilder, toRuntimePropertiesBuilder, toRuntimePropertiesBuilder, toRuntimePropertiesBuilder, toRuntimePropertiesBuilder, withFlush, withInsert, withInsert, withInsertFrom, withInsertTo, withLoadFrom, withLoadFrom, withLoadFrom, withLoadFrom, withPut, withPut, withPutBoolean, withPutByte, withPutDouble, withPutFloat, withPutInteger, withPutLong, withPutShort, withRemoveFrom, withSaveTo, withSaveTo, withSaveTo, withSaveTo, withSaveTo, withSaveTotoProfilePropertiesBuilder, toProfilePropertiesBuilder, toProfilePropertiesBuilder, toProfilePropertiesBuilder, toProfilePropertiesBuilder, toProfilePropertiesBuilder, toProfilePropertiesBuildertoPropertiesBuilder, toPropertiesBuilder, toPropertiesBuilder, toPropertiesBuilder, toPropertiesBuilder, toPropertiesBuilder, toPropertiesBuilder, toPropertiesBuildertoCanonicalMapBuilder, toCanonicalMapBuilder, toCanonicalMapBuilder, toCanonicalMapBuildertoPathMap, toPathMap, toPathMap, toPathMap, toPathMap, toPathMap, toPathMapBuilder, toPathMapBuilder, toPathMapBuilder, toPathMapBuildercontainsValue, delete, loadFrom, loadFrom, loadFrom, loadFrom, put, putAll, putAll, putAllputAll, toDump, toSourceCodeinsert, insert, insertFrom, insertTo, put, putArray, putArray, removeAllput, put, putBoolean, putBoolean, putByte, putByte, putDouble, putDouble, putFloat, putFloat, putInteger, putInteger, putLong, putLong, putShort, putShorttoRuntimeProperties, toRuntimeProperties, toRuntimeProperties, toRuntimeProperties, toRuntimeProperties, toRuntimePropertiesgetRuntimeProfiles, getRuntimeProfilesPath, toProfileProperties, toProfileProperties, toProfileProperties, toProfileProperties, toProfileProperties, toProfileProperties, toProfileProperties, toRuntimeProfile, toRuntimeProfilefromProperties, saveTo, saveTo, saveTo, saveTo, saveTo, saveTo, toMap, toProperties, toProperties, toProperties, toProperties, toProperties, toProperties, toProperties, toPropertyPathdirectories, directories, entries, entries, getArray, getArray, hasParentPath, isArray, isArray, isDirectory, isEntry, isRecord, isRootPath, keySet, paths, paths, records, records, toDataStructure, toDataStructure, toMap, toNormalizedPath, toNormalizedPath, toParentPath, toPathMap, toPathMap, toRootPathprotected File _propertiesFile
public RuntimePropertiesBuilderImpl()
public RuntimePropertiesBuilderImpl(InputStream aInputStream) throws IOException
aInputStream - the a input streamIOException - Signals that an I/O exception has occurred.public RuntimePropertiesBuilderImpl(Map<?,?> aProperties)
aProperties - the a propertiespublic RuntimePropertiesBuilderImpl(org.refcodes.structure.Properties aProperties)
aProperties - the a propertiespublic RuntimePropertiesBuilderImpl(URL aURL) throws IOException
aURL - the a URLIOException - Signals that an I/O exception has occurred.public RuntimePropertiesBuilderImpl(File aPropertiesFile) throws IOException
RuntimeUtility.toAppConfigDirs().aPropertiesFile - The file of the properties file to load.IOException - thrown in case accessing or processing the properties
file failed.public RuntimePropertiesBuilderImpl(String aPropertiesFile) throws IOException
RuntimeUtility.toAppConfigDirs().aPropertiesFile - The file of the properties file to load.IOException - thrown in case accessing or processing the properties
file failed.public void flush()
throws IOException
RuntimeProperties.MutableRuntimePropertiesProperties.saveTo(File, String) or
Properties.saveTo(String).flush in interface RuntimeProperties.MutableRuntimePropertiesIOException - thrown in case writing the properties back failedpublic RuntimeProperties.RuntimePropertiesBuilder retrieveFrom(String aFromPath)
RuntimeProperties.RuntimePropertiesBuilderretrieveFrom in interface RuntimePropertiesretrieveFrom in interface RuntimeProperties.MutableRuntimePropertiesretrieveFrom in interface RuntimeProperties.RuntimePropertiesBuilderretrieveFrom in interface org.refcodes.structure.CanonicalMap.CanonicalMapBuilderretrieveFrom in interface org.refcodes.structure.CanonicalMap.MutableCanonicalMapretrieveFrom in interface org.refcodes.structure.PathMap<String>retrieveFrom in interface org.refcodes.structure.PathMap.MutablePathMap<String>retrieveFrom in interface org.refcodes.structure.PathMap.PathMapBuilder<String>retrieveFrom in interface org.refcodes.structure.ProfilePropertiesretrieveFrom in interface org.refcodes.structure.ProfileProperties.MutableProfilePropertiesretrieveFrom in interface org.refcodes.structure.ProfileProperties.ProfilePropertiesBuilderretrieveFrom in interface org.refcodes.structure.PropertiesretrieveFrom in interface org.refcodes.structure.Properties.MutablePropertiesretrieveFrom in interface org.refcodes.structure.Properties.PropertiesBuilderretrieveFrom in class org.refcodes.structure.impls.ProfilePropertiesBuilderImplaFromPath - the a from pathpublic RuntimeProperties.RuntimePropertiesBuilder retrieveTo(String aToPath)
RuntimeProperties.RuntimePropertiesBuilderretrieveTo in interface RuntimePropertiesretrieveTo in interface RuntimeProperties.MutableRuntimePropertiesretrieveTo in interface RuntimeProperties.RuntimePropertiesBuilderretrieveTo in interface org.refcodes.structure.CanonicalMap.CanonicalMapBuilderretrieveTo in interface org.refcodes.structure.CanonicalMap.MutableCanonicalMapretrieveTo in interface org.refcodes.structure.PathMap<String>retrieveTo in interface org.refcodes.structure.PathMap.MutablePathMap<String>retrieveTo in interface org.refcodes.structure.PathMap.PathMapBuilder<String>retrieveTo in interface org.refcodes.structure.ProfilePropertiesretrieveTo in interface org.refcodes.structure.ProfileProperties.MutableProfilePropertiesretrieveTo in interface org.refcodes.structure.ProfileProperties.ProfilePropertiesBuilderretrieveTo in interface org.refcodes.structure.PropertiesretrieveTo in interface org.refcodes.structure.Properties.MutablePropertiesretrieveTo in interface org.refcodes.structure.Properties.PropertiesBuilderretrieveTo in class org.refcodes.structure.impls.ProfilePropertiesBuilderImplaToPath - the a to pathprotected void fromFile(File aFile) throws FileNotFoundException, IOException
aFile - the a fileFileNotFoundException - the file not found exceptionIOException - Signals that an I/O exception has occurred.Copyright © 2017. All rights reserved.