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.RuntimePropertiesBuilder
org.refcodes.structure.ProfileProperties.MutableProfileProperties, org.refcodes.structure.ProfileProperties.ProfilePropertiesBuilder
org.refcodes.structure.Properties.MutableProperties, org.refcodes.structure.Properties.PropertiesBuilder
org.refcodes.structure.CanonicalMap.CanonicalMapBuilder, org.refcodes.structure.CanonicalMap.MutableCanonicalMap
org.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.
|
getRuntimeProfilesPath
compute, computeIfAbsent, computeIfPresent, containsKey, getDelimiter, getOrDefault, getType, merge, put, putIfAbsent, remove, remove, replace, replace, toDataStructure
clear, clone, containsValue, entrySet, forEach, isEmpty, keySet, putAll, replaceAll, size, values
equals, hashCode, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
retrieve, 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, withSaveTo
toProfilePropertiesBuilder, toProfilePropertiesBuilder, toProfilePropertiesBuilder, toProfilePropertiesBuilder, toProfilePropertiesBuilder, toProfilePropertiesBuilder, toProfilePropertiesBuilder
toPropertiesBuilder, toPropertiesBuilder, toPropertiesBuilder, toPropertiesBuilder, toPropertiesBuilder, toPropertiesBuilder, toPropertiesBuilder, toPropertiesBuilder
toCanonicalMapBuilder, toCanonicalMapBuilder, toCanonicalMapBuilder, toCanonicalMapBuilder
toPathMap, toPathMap, toPathMap, toPathMap, toPathMap, toPathMap, toPathMapBuilder, toPathMapBuilder, toPathMapBuilder, toPathMapBuilder
containsValue, delete, loadFrom, loadFrom, loadFrom, loadFrom, put, putAll, putAll, putAll
putAll, toDump, toSourceCode
insert, insert, insertFrom, insertTo, put, putArray, putArray, removeAll
put, put, putBoolean, putBoolean, putByte, putByte, putDouble, putDouble, putFloat, putFloat, putInteger, putInteger, putLong, putLong, putShort, putShort
toRuntimeProperties, toRuntimeProperties, toRuntimeProperties, toRuntimeProperties, toRuntimeProperties, toRuntimeProperties
getRuntimeProfiles, getRuntimeProfilesPath, toProfileProperties, toProfileProperties, toProfileProperties, toProfileProperties, toProfileProperties, toProfileProperties, toProfileProperties, toRuntimeProfile, toRuntimeProfile
fromProperties, saveTo, saveTo, saveTo, saveTo, saveTo, saveTo, toMap, toProperties, toProperties, toProperties, toProperties, toProperties, toProperties, toProperties, toPropertyPath
directories, 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, toRootPath
protected 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.MutableRuntimeProperties
Properties.saveTo(File, String)
or
Properties.saveTo(String)
.flush
in interface RuntimeProperties.MutableRuntimeProperties
IOException
- thrown in case writing the properties back failedpublic RuntimeProperties.RuntimePropertiesBuilder retrieveFrom(String aFromPath)
RuntimeProperties.RuntimePropertiesBuilder
retrieveFrom
in interface RuntimeProperties
retrieveFrom
in interface RuntimeProperties.MutableRuntimeProperties
retrieveFrom
in interface RuntimeProperties.RuntimePropertiesBuilder
retrieveFrom
in interface org.refcodes.structure.CanonicalMap.CanonicalMapBuilder
retrieveFrom
in interface org.refcodes.structure.CanonicalMap.MutableCanonicalMap
retrieveFrom
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.ProfileProperties
retrieveFrom
in interface org.refcodes.structure.ProfileProperties.MutableProfileProperties
retrieveFrom
in interface org.refcodes.structure.ProfileProperties.ProfilePropertiesBuilder
retrieveFrom
in interface org.refcodes.structure.Properties
retrieveFrom
in interface org.refcodes.structure.Properties.MutableProperties
retrieveFrom
in interface org.refcodes.structure.Properties.PropertiesBuilder
retrieveFrom
in class org.refcodes.structure.impls.ProfilePropertiesBuilderImpl
aFromPath
- the a from pathpublic RuntimeProperties.RuntimePropertiesBuilder retrieveTo(String aToPath)
RuntimeProperties.RuntimePropertiesBuilder
retrieveTo
in interface RuntimeProperties
retrieveTo
in interface RuntimeProperties.MutableRuntimeProperties
retrieveTo
in interface RuntimeProperties.RuntimePropertiesBuilder
retrieveTo
in interface org.refcodes.structure.CanonicalMap.CanonicalMapBuilder
retrieveTo
in interface org.refcodes.structure.CanonicalMap.MutableCanonicalMap
retrieveTo
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.ProfileProperties
retrieveTo
in interface org.refcodes.structure.ProfileProperties.MutableProfileProperties
retrieveTo
in interface org.refcodes.structure.ProfileProperties.ProfilePropertiesBuilder
retrieveTo
in interface org.refcodes.structure.Properties
retrieveTo
in interface org.refcodes.structure.Properties.MutableProperties
retrieveTo
in interface org.refcodes.structure.Properties.PropertiesBuilder
retrieveTo
in class org.refcodes.structure.impls.ProfilePropertiesBuilderImpl
aToPath
- 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.