Uses of Interface
org.refcodes.configuration.Properties
-
-
Uses of Properties in org.refcodes.configuration
Classes in org.refcodes.configuration with type parameters of type Properties Modifier and Type Class Description class
AbstractPropertiesDecorator<T extends Properties>
Decorates the providedProperties
and delegates method calls to themProperties
.Subinterfaces of Properties in org.refcodes.configuration Modifier and Type Interface Description interface
ProfileProperties
TheProfileProperties
extend theProperties
with Runtime-Profiles support.static interface
ProfileProperties.MutableProfileProperties
The Interface MutableProfileProperties.static interface
ProfileProperties.ProfilePropertiesBuilder
The Interface ProfilePropertiesBuilder.static interface
Properties.MutableProperties
The interfaceProperties.MutableProperties
defines "dirty" methods allowing to modify ("mutate") the properties.static interface
Properties.PropertiesBuilder
The interfaceProperties.PropertiesBuilder
defines builder functionality on top of the properties .interface
PropertiesPrecedence
Defines a meta-interface in order to retrieve properties from various different properties sources (Properties
instances) by querying all the herein containedProperties
instances in the order of them being added.static interface
PropertiesPrecedence.MutablePropertiesPrecedence
The interfacePropertiesPrecedence.MutablePropertiesPrecedence
defines "dirty" methods allowing to modify ("mutate") thePropertiesPrecedence
: Add or removeProperties
inside aPropertiesPrecedence
instance.static interface
PropertiesPrecedence.PropertiesPrecedenceBuilder
The interfacePropertiesPrecedence.MutablePropertiesPrecedence
defines builder functionality on top of the properties .interface
ResourceProperties
TheResourceProperties
are a specialization of theDictionary
.static interface
ResourceProperties.MutableResoureProperties
The interfaceResourceProperties.MutableResoureProperties
defines "dirty" methods allowing to modify ("mutate") theResourceProperties
.static interface
ResourceProperties.ResourcePropertiesBuilder
The interfaceResourceProperties.ResourcePropertiesBuilder
defines builder functionality on top of theResourceProperties.MutableResoureProperties
.interface
ScheduledResourceProperties
TheScheduledResourceProperties
enrichResourceProperties
with scheduling functionality whereby the properties are being automatically reloaded periodically viaResourceProperties.reload(ReloadMode)
.static interface
ScheduledResourceProperties.ScheduledMuableResourceProperties
The interfaceScheduledResourceProperties.ScheduledMuableResourceProperties
defines "dirty" methods allowing to modify ("mutate") theScheduledResourceProperties
.static interface
ScheduledResourceProperties.ScheduledResourcePropertiesBuilder
The interfaceScheduledResourceProperties.ScheduledResourcePropertiesBuilder
defines builder functionality on top of theScheduledResourceProperties.ScheduledMuableResourceProperties
.interface
StrictProperties
TheStrictProperties
extends theProperties
with all the getters to throw aKeyNotFoundRuntimeException
instead of returning null in case the key was not found.static interface
StrictProperties.MutableStrictProperties
The Interface MutableStrictProperties.static interface
StrictProperties.StrictPropertiesBuilder
The Interface StrictPropertiesBuilder.Classes in org.refcodes.configuration that implement Properties Modifier and Type Class Description class
AbstractPropertiesBuilderDecorator<T extends Properties.PropertiesBuilder>
class
AbstractPropertiesDecorator<T extends Properties>
Decorates the providedProperties
and delegates method calls to themProperties
.class
AbstractResourcePropertiesBuilder
Implementation of the mutableResourceProperties.ResourcePropertiesBuilder
interface.class
AbstractResourcePropertiesBuilderDecorator<T extends ResourceProperties.ResourcePropertiesBuilder>
class
AbstractResourcePropertiesDecorator<T extends ResourceProperties>
Decorates the providedResourceProperties
and delegates method calls to themResourceProperties
.class
ArgsProperties
TheArgsProperties
takes them command line arguments "as is" and converts them into key/value pairs as of theProperties
semantics.class
EnvironmentProperties
Extension of theProperties
type overwriting methods in order to access the operating system's environment variables as ofenv
on Linux or Unix shells orset
on Windows machines (e.g."class
JavaProperties
Implementation of theResourceProperties
interface with support of so called "Java properties" (or just "properties").class
JavaPropertiesBuilder
Implementation of theResourceProperties.ResourcePropertiesBuilder
interface with support of so called "Java properties" (or just "properties").class
JsonProperties
Implementation of theResourceProperties
interface with support of so called "JSON properties".class
JsonPropertiesBuilder
Implementation of theResourceProperties.ResourcePropertiesBuilder
interface with support of so called "JSON properties" (or just "properties").class
NormalizedPropertiesDecorator
TheNormalizedPropertiesDecorator
type decorates aProperties
instance and converts a path delimiter such as the full-stop (".") to theProperties
properties' path delimiter slash ("/", as ofAbstractPropertiesDecorator.getDelimiter()
).class
PolyglotProperties
Implementation of theResourceProperties
interface with support of so called "PolyglotProperties
" (or just "properties").class
PolyglotPropertiesBuilder
Implementation of theResourceProperties.ResourcePropertiesBuilder
interface with support of so called "PolyglotPropertiesBuilder
" (or just "properties").class
ProfilePropertiesDecorator
TheProfilePropertiesDecorator
type decorates aProperties
instance and enriches it with profile support as ofProfileProperties
.class
ProfilePropertiesProjection
TheProfilePropertiesProjection
applies the profiles as ofProfileProperties.getRuntimeProfiles()
onto the encapsulatedProperties
(ProfileProperties
) and provides a view of themProperties
(ProfileProperties
) from the profiles' point of view e.g. as when profiles have been applied to themProperties
(ProfileProperties
).class
PropertiesBuilderImpl
The Class PropertiesBuilderImpl.class
PropertiesImpl
The Class PropertiesImpl.class
PropertiesPrecedenceBuilderComposite
class
PropertiesPrecedenceComposite
Retrieve properties from various different properties sources (Properties
instances) by querying all the herein containedProperties
instances in the order of them being added.class
ScheduledResourcePropertiesBuilderDecorator
TheScheduledResourcePropertiesBuilderDecorator
decoratesResourceProperties.ResourcePropertiesBuilder
from which the properties are to be reloaded periodically viaAbstractResourcePropertiesBuilderDecorator.reload(ReloadMode)
.class
ScheduledResourcePropertiesDecorator
TheScheduledResourcePropertiesDecorator
decoratesResourceProperties
from which the properties are to be reloaded periodically viaAbstractResourcePropertiesDecorator.reload(ReloadMode)
.class
StrictPropertiesDecorator
TheStrictPropertiesDecorator
type decorates aProperties
instance with all the getters to throw aKeyNotFoundRuntimeException
instead of returning null in case the key was not found.class
SystemProperties
Extension of theProperties
type overwriting methods in order to access system properties as passed via the "-Dkey=value" when launching the JVM (e.g.java -Dconsole.width=220) The keys are transformed to a system properties by removing a prefixed "/" path delimiter (as ofgetDelimiter()
and converting all other path delimiters "/" to the system property's (de facto standard) separator ".".class
TomlProperties
Implementation of theResourceProperties
interface with support of so called "TOML properties".class
TomlPropertiesBuilder
Implementation of theResourceProperties.ResourcePropertiesBuilder
interface with support of so called "TOML properties".class
XmlProperties
Implementation of theResourceProperties
interface with support of so called "XML properties".class
XmlPropertiesBuilder
Implementation of theResourceProperties.ResourcePropertiesBuilder
interface with support of so called "XML properties" (or just "properties").class
YamlProperties
Implementation of theResourceProperties
interface with support of so called "YAML properties".class
YamlPropertiesBuilder
Implementation of theResourceProperties.ResourcePropertiesBuilder
interface with support of so called "YAML properties" (or just "properties").Fields in org.refcodes.configuration with type parameters of type Properties Modifier and Type Field Description protected java.util.List<Properties>
PropertiesPrecedenceComposite. _properties
Methods in org.refcodes.configuration that return Properties Modifier and Type Method Description Properties
AbstractPropertiesDecorator. childrenOf(java.lang.String aParentPath)
Properties
EnvironmentProperties. childrenOf(java.lang.String aParentPath)
Properties
JavaProperties. childrenOf(java.lang.String aParentPath)
Properties
JsonProperties. childrenOf(java.lang.String aParentPath)
Properties
NormalizedPropertiesDecorator. childrenOf(java.lang.String aParentPath)
Properties
ProfilePropertiesProjection. childrenOf(java.lang.String aParentPath)
Properties
Properties. childrenOf(java.lang.String aParentPath)
Properties
PropertiesImpl. childrenOf(java.lang.String aParentPath)
Properties
PropertiesPrecedenceComposite. childrenOf(java.lang.String aParentPath)
Properties
SystemProperties. childrenOf(java.lang.String aParentPath)
Properties
TomlProperties. childrenOf(java.lang.String aParentPath)
Properties
XmlProperties. childrenOf(java.lang.String aParentPath)
Properties
YamlProperties. childrenOf(java.lang.String aParentPath)
static Properties
PropertiesSugar. fromEnvironmentVariables()
ReturnsProperties
representing the operating system's environment variables as ofenv
on Linux or Unix shells orset
on Windows machines.static Properties
PropertiesSugar. fromProfile(Properties aProperties)
Wraps theProperties
with a profile projection.static Properties
PropertiesSugar. fromProfile(Properties aProperties, java.lang.String... aProfiles)
Wraps theProperties
with a profile projection.static Properties
PropertiesSugar. fromSystemProperties()
ReturnsProperties
representing the system properties as passed via the "-Dkey=value" when launching the JVM (e.g.java -Dconsole.width=220).default Properties
Properties. getIndexed(int aIndex)
default Properties
Properties. getIndexed(java.lang.String aPath, int aIndex)
default Properties
Properties.MutableProperties. getIndexed(int aIndex)
default Properties
Properties.MutableProperties. getIndexed(java.lang.String aPath, int aIndex)
default Properties
Properties.PropertiesBuilder. getIndexed(int aIndex)
default Properties
Properties.PropertiesBuilder. getIndexed(java.lang.String aPath, int aIndex)
Properties
PropertiesAccessor. getProperties()
Retrieves the properties from theProperties
property.Properties
AbstractResourcePropertiesBuilder. loadFrom(java.io.File aFile, char... aDelimiters)
Loads the properties from the givenFile
.Properties
AbstractResourcePropertiesBuilderDecorator. loadFrom(java.io.File aFile, char... aDelimiters)
Loads the properties from the givenFile
.Properties
AbstractResourcePropertiesBuilderDecorator. loadFrom(java.io.InputStream aInputStream, char... aDelimiters)
Loads the properties from the givenInputStream
.Properties
JavaPropertiesBuilder. loadFrom(java.io.InputStream aInputStream, char... aDelimiters)
Loads the properties from the givenInputStream
.Properties
JsonPropertiesBuilder. loadFrom(java.io.InputStream aInputStream, char... aDelimiters)
Loads the properties from the givenInputStream
.default Properties
ResourceProperties.MutableResoureProperties. loadFrom(java.io.File aFile)
Loads the properties from the givenFile
.Properties
ResourceProperties.MutableResoureProperties. loadFrom(java.io.File aFile, char... aDelimiters)
Loads the properties from the givenFile
.default Properties
ResourceProperties.MutableResoureProperties. loadFrom(java.io.InputStream aInputStream)
Loads the properties from the givenInputStream
.Properties
ResourceProperties.MutableResoureProperties. loadFrom(java.io.InputStream aInputStream, char... aDelimiters)
Loads the properties from the givenInputStream
.default Properties
ResourceProperties.MutableResoureProperties. loadFrom(java.lang.Class<?> aResourceClass, java.lang.String aFilePath)
Loads the properties from the given class resource (from inside a JAR).default Properties
ResourceProperties.MutableResoureProperties. loadFrom(java.lang.Class<?> aResourceClass, java.lang.String aFilePath, char... aDelimiters)
Loads the properties from the given class resource (from inside a JAR).default Properties
ResourceProperties.MutableResoureProperties. loadFrom(java.lang.String aFilePath)
Loads the properties from the given file path'sFile
.default Properties
ResourceProperties.MutableResoureProperties. loadFrom(java.lang.String aFilePath, char... aDelimiters)
Loads the properties from the given file path'sFile
.default Properties
ResourceProperties.MutableResoureProperties. loadFrom(java.net.URL aUrl)
Loads the properties from the givenURL
.default Properties
ResourceProperties.MutableResoureProperties. loadFrom(java.net.URL aUrl, char... aDelimiters)
Loads the properties from the givenURL
.Properties
TomlPropertiesBuilder. loadFrom(java.io.File aFile)
Loads the properties from the givenFile
.Properties
TomlPropertiesBuilder. loadFrom(java.io.InputStream aInputStream)
Loads the properties from the givenInputStream
.Properties
TomlPropertiesBuilder. loadFrom(java.io.InputStream aInputStream, char... aDelimiters)
Loads the properties from the givenInputStream
.Properties
XmlPropertiesBuilder. loadFrom(java.io.InputStream aInputStream, char... aDelimiters)
Loads the properties from the givenInputStream
.Properties
YamlPropertiesBuilder. loadFrom(java.io.InputStream aInputStream, char... aDelimiters)
Loads the properties from the givenInputStream
.Properties
AbstractResourcePropertiesBuilder. reload()
Reloads theResourceProperties
from the resource to which theResourceProperties
are attached to (such as aFile
as ofResourceProperties.MutableResoureProperties.loadFrom(File)
orResourceProperties.MutableResoureProperties.saveTo(File)
).Properties
AbstractResourcePropertiesBuilder. reload(ReloadMode aReloadMode)
Reloads theResourceProperties
from the resource to which theResourceProperties
are attached to (such as aFile
as ofResourceProperties.MutableResoureProperties.loadFrom(File)
orResourceProperties.MutableResoureProperties.saveTo(File)
).Properties
AbstractResourcePropertiesBuilderDecorator. reload()
Reloads theResourceProperties
from the resource to which theResourceProperties
are attached to (such as aFile
as ofResourceProperties.MutableResoureProperties.loadFrom(File)
orResourceProperties.MutableResoureProperties.saveTo(File)
).Properties
AbstractResourcePropertiesBuilderDecorator. reload(ReloadMode aReloadMode)
Reloads theResourceProperties
from the resource to which theResourceProperties
are attached to (such as aFile
as ofResourceProperties.MutableResoureProperties.loadFrom(File)
orResourceProperties.MutableResoureProperties.saveTo(File)
).Properties
AbstractResourcePropertiesDecorator. reload()
Reloads theResourceProperties
from the resource to which theResourceProperties
are attached to (such as aFile
as ofResourceProperties.MutableResoureProperties.loadFrom(File)
orResourceProperties.MutableResoureProperties.saveTo(File)
).Properties
AbstractResourcePropertiesDecorator. reload(ReloadMode aReloadMode)
Reloads theResourceProperties
from the resource to which theResourceProperties
are attached to (such as aFile
as ofResourceProperties.MutableResoureProperties.loadFrom(File)
orResourceProperties.MutableResoureProperties.saveTo(File)
).Properties
JavaProperties. reload()
Reloads theResourceProperties
from the resource to which theResourceProperties
are attached to (such as aFile
as ofResourceProperties.MutableResoureProperties.loadFrom(File)
orResourceProperties.MutableResoureProperties.saveTo(File)
).Properties
JavaProperties. reload(ReloadMode aReloadMode)
Reloads theResourceProperties
from the resource to which theResourceProperties
are attached to (such as aFile
as ofResourceProperties.MutableResoureProperties.loadFrom(File)
orResourceProperties.MutableResoureProperties.saveTo(File)
).Properties
JsonProperties. reload()
Reloads theResourceProperties
from the resource to which theResourceProperties
are attached to (such as aFile
as ofResourceProperties.MutableResoureProperties.loadFrom(File)
orResourceProperties.MutableResoureProperties.saveTo(File)
).Properties
JsonProperties. reload(ReloadMode aReloadMode)
Reloads theResourceProperties
from the resource to which theResourceProperties
are attached to (such as aFile
as ofResourceProperties.MutableResoureProperties.loadFrom(File)
orResourceProperties.MutableResoureProperties.saveTo(File)
).Properties
ResourceProperties. reload()
Reloads theResourceProperties
from the resource to which theResourceProperties
are attached to (such as aFile
as ofResourceProperties.MutableResoureProperties.loadFrom(File)
orResourceProperties.MutableResoureProperties.saveTo(File)
).Properties
ResourceProperties. reload(ReloadMode aReloadMode)
Reloads theResourceProperties
from the resource to which theResourceProperties
are attached to (such as aFile
as ofResourceProperties.MutableResoureProperties.loadFrom(File)
orResourceProperties.MutableResoureProperties.saveTo(File)
).Properties
TomlProperties. reload()
Reloads theResourceProperties
from the resource to which theResourceProperties
are attached to (such as aFile
as ofResourceProperties.MutableResoureProperties.loadFrom(File)
orResourceProperties.MutableResoureProperties.saveTo(File)
).Properties
TomlProperties. reload(ReloadMode aReloadMode)
Reloads theResourceProperties
from the resource to which theResourceProperties
are attached to (such as aFile
as ofResourceProperties.MutableResoureProperties.loadFrom(File)
orResourceProperties.MutableResoureProperties.saveTo(File)
).Properties
XmlProperties. reload()
Reloads theResourceProperties
from the resource to which theResourceProperties
are attached to (such as aFile
as ofResourceProperties.MutableResoureProperties.loadFrom(File)
orResourceProperties.MutableResoureProperties.saveTo(File)
).Properties
XmlProperties. reload(ReloadMode aReloadMode)
Reloads theResourceProperties
from the resource to which theResourceProperties
are attached to (such as aFile
as ofResourceProperties.MutableResoureProperties.loadFrom(File)
orResourceProperties.MutableResoureProperties.saveTo(File)
).Properties
YamlProperties. reload()
Reloads theResourceProperties
from the resource to which theResourceProperties
are attached to (such as aFile
as ofResourceProperties.MutableResoureProperties.loadFrom(File)
orResourceProperties.MutableResoureProperties.saveTo(File)
).Properties
YamlProperties. reload(ReloadMode aReloadMode)
Reloads theResourceProperties
from the resource to which theResourceProperties
are attached to (such as aFile
as ofResourceProperties.MutableResoureProperties.loadFrom(File)
orResourceProperties.MutableResoureProperties.saveTo(File)
).default Properties
Properties. retrieve(java.lang.String aFromPath, java.lang.String aToPath)
Properties
AbstractPropertiesDecorator. retrieveFrom(java.lang.String aFromPath)
Properties
EnvironmentProperties. retrieveFrom(java.lang.String aFromPath)
Properties
JavaProperties. retrieveFrom(java.lang.String aFromPath)
Properties
JsonProperties. retrieveFrom(java.lang.String aFromPath)
Properties
NormalizedPropertiesDecorator. retrieveFrom(java.lang.String aFromPath)
Properties
ProfilePropertiesProjection. retrieveFrom(java.lang.String aFromPath)
Properties
Properties. retrieveFrom(java.lang.String aFromPath)
Properties
PropertiesImpl. retrieveFrom(java.lang.String aFromPath)
Properties
PropertiesPrecedenceComposite. retrieveFrom(java.lang.String aFromPath)
Properties
SystemProperties. retrieveFrom(java.lang.String aFromPath)
Properties
TomlProperties. retrieveFrom(java.lang.String aFromPath)
Properties
XmlProperties. retrieveFrom(java.lang.String aFromPath)
Properties
YamlProperties. retrieveFrom(java.lang.String aFromPath)
Properties
AbstractPropertiesDecorator. retrieveTo(java.lang.String aToPath)
Properties
EnvironmentProperties. retrieveTo(java.lang.String aToPath)
Properties
JavaProperties. retrieveTo(java.lang.String aToPath)
Properties
JsonProperties. retrieveTo(java.lang.String aToPath)
Properties
NormalizedPropertiesDecorator. retrieveTo(java.lang.String aToPath)
Properties
ProfilePropertiesProjection. retrieveTo(java.lang.String aToPath)
Properties
Properties. retrieveTo(java.lang.String aToPath)
Properties
PropertiesImpl. retrieveTo(java.lang.String aToPath)
Properties
PropertiesPrecedenceComposite. retrieveTo(java.lang.String aToPath)
Properties
SystemProperties. retrieveTo(java.lang.String aToPath)
Properties
TomlProperties. retrieveTo(java.lang.String aToPath)
Properties
XmlProperties. retrieveTo(java.lang.String aToPath)
Properties
YamlProperties. retrieveTo(java.lang.String aToPath)
Properties
AbstractResourcePropertiesBuilder. seekFrom(java.lang.Class<?> aResourceClass, java.lang.String aFilePath, org.refcodes.runtime.ConfigLocator aConfigLocator, char... aDelimiters)
Loads a properties file from the file path directly or (if not found) from the first folder containing such a file as of theConfigLocator
configuration passed.Properties
AbstractResourcePropertiesBuilderDecorator. seekFrom(java.lang.Class<?> aResourceClass, java.lang.String aFilePath, org.refcodes.runtime.ConfigLocator aConfigLocator, char... aDelimiters)
Loads a properties file from the file path directly or (if not found) from the first folder containing such a file as of theConfigLocator
configuration passed.default Properties
ResourceProperties.MutableResoureProperties. seekFrom(java.io.File aFile)
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 for theConfigLocator
(if not provided, thenConfigLocator.ALL
is assumed).default Properties
ResourceProperties.MutableResoureProperties. seekFrom(java.io.File aFile, char... aDelimiters)
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 for theConfigLocator
(if not provided, thenConfigLocator.ALL
is assumed).default Properties
ResourceProperties.MutableResoureProperties. seekFrom(java.io.File aFile, org.refcodes.runtime.ConfigLocator aConfigLocator, char... aDelimiters)
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 for theConfigLocator
(if not provided, thenConfigLocator.ALL
is assumed).default Properties
ResourceProperties.MutableResoureProperties. seekFrom(java.lang.Class<?> aResourceClass, java.lang.String aFilePath)
Loads a properties file from the file path directly or (if not found) from the first folder containing such a file as of the specification for theConfigLocator
(if not provided, thenConfigLocator.ALL
is assumed).default Properties
ResourceProperties.MutableResoureProperties. seekFrom(java.lang.Class<?> aResourceClass, java.lang.String aFilePath, char... aDelimiters)
Loads a properties file from the file path directly or (if not found) from the first folder containing such a file as of theConfigLocator.ALL
configuration.Properties
ResourceProperties.MutableResoureProperties. seekFrom(java.lang.Class<?> aResourceClass, java.lang.String aFilePath, org.refcodes.runtime.ConfigLocator aConfigLocator, char... aDelimiters)
Loads a properties file from the file path directly or (if not found) from the first folder containing such a file as of theConfigLocator
configuration passed.default Properties
ResourceProperties.MutableResoureProperties. seekFrom(java.lang.String aFilePath)
Loads a properties file from the file path directly or (if not found) from the first folder containing such a file as of the specification for theConfigLocator
(if not provided, thenConfigLocator.ALL
is assumed).default Properties
ResourceProperties.MutableResoureProperties. seekFrom(java.lang.String aFilePath, char... aDelimiters)
Loads a properties file from the file path directly or (if not found) from the first folder containing such a file as of the specification for theConfigLocator
(if not provided, thenConfigLocator.ALL
is assumed).default Properties
ResourceProperties.MutableResoureProperties. seekFrom(java.lang.String aFilePath, org.refcodes.runtime.ConfigLocator aConfigLocator, char... aDelimiters)
Loads a properties file from the file path directly or (if not found) from the first folder containing such a file as of the specification for theConfigLocator
(if not provided, thenConfigLocator.ALL
is assumed).Properties
TomlPropertiesBuilder. seekFrom(java.lang.Class<?> aResourceClass, java.lang.String aFilePath)
Loads a properties file from the file path directly or (if not found) from the first folder containing such a file as of the specification for theConfigLocator
(if not provided, thenConfigLocator.ALL
is assumed).Properties
TomlPropertiesBuilder. seekFrom(java.lang.String aFilePath)
Loads a properties file from the file path directly or (if not found) from the first folder containing such a file as of the specification for theConfigLocator
(if not provided, thenConfigLocator.ALL
is assumed).static Properties
PropertiesSugar. toNormalized(Properties aProperties)
Decorates the providedProperties
with additional behavior by normalizing the key representing the path pointing to the according value.static Properties
PropertiesSugar. toNormalized(Properties aProperties, char[] aDelimiters)
Decorates the providedProperties
with additional behavior by normalizing the key representing the path pointing to the according value.static Properties
PropertiesSugar. toPrecedence(Properties... aProperties)
Creates aProperties
composite querying the providedProperties
in the given order.default Properties
ProfileProperties. toRuntimeProfile()
Evaluates the active Runtime-Profiles as ofProfileProperties.getRuntimeProfiles()
and creates the accordingProperties
.default Properties
ProfileProperties. toRuntimeProfile(java.lang.String... aProfiles)
Evaluates the provided Runtime-Profiles and creates the accordingProperties
.Methods in org.refcodes.configuration with parameters of type Properties Modifier and Type Method Description void
PropertiesPrecedence.MutablePropertiesPrecedence. appendProperties(Properties aProperties)
Appends the providedProperties
to the end of the precedence list, meaning that the addedProperties
have lowest priority.void
PropertiesPrecedenceBuilderComposite. appendProperties(Properties aProperties)
Appends the providedProperties
to the end of the precedence list, meaning that the addedProperties
have lowest priority.static ResourceProperties.ResourcePropertiesBuilder
PropertiesSugar. fileToJavaProperties(Properties aProperties, java.io.File aFile)
Files the Java properties to the givenFile
.static ResourceProperties.ResourcePropertiesBuilder
PropertiesSugar. fileToJavaProperties(Properties aProperties, java.lang.String aFilePath)
Files the Java properties to the given file's path.static ResourceProperties.ResourcePropertiesBuilder
PropertiesSugar. fileToJsonProperties(Properties aProperties, java.io.File aFile)
Files the JSON properties to the givenFile
.static ResourceProperties.ResourcePropertiesBuilder
PropertiesSugar. fileToJsonProperties(Properties aProperties, java.lang.String aFilePath)
Files the JSON properties to the given file's path.static ResourceProperties.ResourcePropertiesBuilder
PropertiesSugar. fileToTomlProperties(Properties aProperties, java.io.File aFile)
Files the TOML properties to the givenFile
.static ResourceProperties.ResourcePropertiesBuilder
PropertiesSugar. fileToTomlProperties(Properties aProperties, java.lang.String aFilePath)
Files the TOML properties to the given file's path.static ResourceProperties.ResourcePropertiesBuilder
PropertiesSugar. fileToXmlProperties(Properties aProperties, java.io.File aFile)
Files the XML properties to the givenFile
.static ResourceProperties.ResourcePropertiesBuilder
PropertiesSugar. fileToXmlProperties(Properties aProperties, java.lang.String aFilePath)
Files the XML properties to the given file's path.static ResourceProperties.ResourcePropertiesBuilder
PropertiesSugar. fileToYamlProperties(Properties aProperties, java.io.File aFile)
Files the YAML properties to the givenFile
.static ResourceProperties.ResourcePropertiesBuilder
PropertiesSugar. fileToYamlProperties(Properties aProperties, java.lang.String aFilePath)
Files the YAML properties to the given file's path.static Properties
PropertiesSugar. fromProfile(Properties aProperties)
Wraps theProperties
with a profile projection.static Properties
PropertiesSugar. fromProfile(Properties aProperties, java.lang.String... aProfiles)
Wraps theProperties
with a profile projection.default void
Properties.MutableProperties. insert(java.lang.String aToPath, Properties aFrom, java.lang.String aFromPath)
Method to semantically emphasize that we support our own types.default void
Properties.MutableProperties. insert(Properties aFrom)
Method to semantically emphasize that we support our own types.default void
Properties.MutableProperties. insertFrom(Properties aFrom, java.lang.String aFromPath)
Method to semantically emphasize that we support our own types.default void
Properties.MutableProperties. insertTo(java.lang.String aToPath, Properties aFrom)
Method to semantically emphasize that we support our own types.void
PropertiesPrecedence.MutablePropertiesPrecedence. prependProperties(Properties aProperties)
Prepends the providedProperties
to beginning of the precedence list, meaning that the addedProperties
have highest priority.void
PropertiesPrecedenceBuilderComposite. prependProperties(Properties aProperties)
Prepends the providedProperties
to beginning of the precedence list, meaning that the addedProperties
have highest priority.default void
Properties.MutableProperties. putAll(Properties aProperties)
This method inserts all elements (key/value-pairs) found in the providedProperties
instances of interoperability reasons.static ResourceProperties.ResourcePropertiesBuilder
PropertiesSugar. saveToJavaProperties(Properties aProperties, java.io.File aFile)
Saves the Java properties to the givenFile
.static ResourceProperties.ResourcePropertiesBuilder
PropertiesSugar. saveToJavaProperties(Properties aProperties, java.io.OutputStream aOutputStream)
Writes the properties to the givenOutputStream
.static ResourceProperties.ResourcePropertiesBuilder
PropertiesSugar. saveToJavaProperties(Properties aProperties, java.lang.String aFilePath)
Saves the Java properties to the given file's path.static ResourceProperties.ResourcePropertiesBuilder
PropertiesSugar. saveToJsonProperties(Properties aProperties, java.io.File aFile)
Saves the JSON properties to the givenFile
.static ResourceProperties.ResourcePropertiesBuilder
PropertiesSugar. saveToJsonProperties(Properties aProperties, java.io.OutputStream aOutputStream)
Writes the properties to the givenOutputStream
.static ResourceProperties.ResourcePropertiesBuilder
PropertiesSugar. saveToJsonProperties(Properties aProperties, java.lang.String aFilePath)
Saves the JSON properties to the given file's path.static ResourceProperties.ResourcePropertiesBuilder
PropertiesSugar. saveToTomlProperties(Properties aProperties, java.io.File aFile)
Saves the TOML properties to the givenFile
.static ResourceProperties.ResourcePropertiesBuilder
PropertiesSugar. saveToTomlProperties(Properties aProperties, java.io.OutputStream aOutputStream)
Writes the properties to the givenOutputStream
.static ResourceProperties.ResourcePropertiesBuilder
PropertiesSugar. saveToTomlProperties(Properties aProperties, java.lang.String aFilePath)
Saves the TOML properties to the given file's path.static ResourceProperties.ResourcePropertiesBuilder
PropertiesSugar. saveToXmlProperties(Properties aProperties, java.io.File aFile)
Saves the XML properties to the givenFile
.static ResourceProperties.ResourcePropertiesBuilder
PropertiesSugar. saveToXmlProperties(Properties aProperties, java.io.OutputStream aOutputStream)
Writes the properties to the givenOutputStream
.static ResourceProperties.ResourcePropertiesBuilder
PropertiesSugar. saveToXmlProperties(Properties aProperties, java.lang.String aFilePath)
Saves the XML properties to the given file's path.static ResourceProperties.ResourcePropertiesBuilder
PropertiesSugar. saveToYamlProperties(Properties aProperties, java.io.File aFile)
Saves the YAML properties to the givenFile
.static ResourceProperties.ResourcePropertiesBuilder
PropertiesSugar. saveToYamlProperties(Properties aProperties, java.io.OutputStream aOutputStream)
Writes the properties to the givenOutputStream
.static ResourceProperties.ResourcePropertiesBuilder
PropertiesSugar. saveToYamlProperties(Properties aProperties, java.lang.String aFilePath)
Saves the YAML properties to the given file's path.void
PropertiesAccessor.PropertiesMutator. setProperties(Properties aProperties)
Sets the properties for theProperties
property.static Properties
PropertiesSugar. toNormalized(Properties aProperties)
Decorates the providedProperties
with additional behavior by normalizing the key representing the path pointing to the according value.static Properties
PropertiesSugar. toNormalized(Properties aProperties, char[] aDelimiters)
Decorates the providedProperties
with additional behavior by normalizing the key representing the path pointing to the according value.static Properties
PropertiesSugar. toPrecedence(Properties... aProperties)
Creates aProperties
composite querying the providedProperties
in the given order.ResourceProperties
JavaProperties.JavaPropertiesFactory. toProperties(Properties aProperties)
Create aResourceProperties
instance containing the elements of the providedProperties
instance using the path delimiter "/" (Delimiter.PATH
) for the path declarationsResourceProperties.ResourcePropertiesBuilder
JavaPropertiesBuilder.JavaPropertiesBuilderFactory. toProperties(Properties aProperties)
Create aResourceProperties
instance containing the elements of the providedProperties
instance using the path delimiter "/" (Delimiter.PATH
) for the path declarationsResourceProperties
JsonProperties.JsonPropertiesFactory. toProperties(Properties aProperties)
Create aResourceProperties
instance containing the elements of the providedProperties
instance using the path delimiter "/" (Delimiter.PATH
) for the path declarationsResourceProperties.ResourcePropertiesBuilder
JsonPropertiesBuilder.JsonPropertiesBuilderFactory. toProperties(Properties aProperties)
Create aResourceProperties
instance containing the elements of the providedProperties
instance using the path delimiter "/" (Delimiter.PATH
) for the path declarationsResourceProperties
PolyglotProperties.PolyglotPropertiesFactory. toProperties(Properties aProperties)
Will returnResourceProperties
created by the first addedResourcePropertiesFactory
instance.ResourceProperties.ResourcePropertiesBuilder
PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory. toProperties(Properties aProperties)
Will returnResourceProperties.ResourcePropertiesBuilder
created by the first addedResourcePropertiesFactory.ResourcePropertiesBuilderFactory
instance.ResourceProperties.ResourcePropertiesBuilder
ResourcePropertiesFactory.ResourcePropertiesBuilderFactory. toProperties(Properties aProperties)
Create aResourceProperties
instance containing the elements of the providedProperties
instance using the path delimiter "/" (Delimiter.PATH
) for the path declarationsResourceProperties
ResourcePropertiesFactory. toProperties(Properties aProperties)
Create aResourceProperties
instance containing the elements of the providedProperties
instance using the path delimiter "/" (Delimiter.PATH
) for the path declarationsResourceProperties
TomlProperties.TomlPropertiesFactory. toProperties(Properties aProperties)
Create aResourceProperties
instance containing the elements of the providedProperties
instance using the path delimiter "/" (Delimiter.PATH
) for the path declarationsResourceProperties.ResourcePropertiesBuilder
TomlPropertiesBuilder.TomlPropertiesBuilderFactory. toProperties(Properties aProperties)
Create aResourceProperties
instance containing the elements of the providedProperties
instance using the path delimiter "/" (Delimiter.PATH
) for the path declarationsResourceProperties
XmlProperties.XmlPropertiesFactory. toProperties(Properties aProperties)
Create aResourceProperties
instance containing the elements of the providedProperties
instance using the path delimiter "/" (Delimiter.PATH
) for the path declarationsResourceProperties.ResourcePropertiesBuilder
XmlPropertiesBuilder.XmlPropertiesBuilderFactory. toProperties(Properties aProperties)
Create aResourceProperties
instance containing the elements of the providedProperties
instance using the path delimiter "/" (Delimiter.PATH
) for the path declarationsResourceProperties
YamlProperties.YamlPropertiesFactory. toProperties(Properties aProperties)
Create aResourceProperties
instance containing the elements of the providedProperties
instance using the path delimiter "/" (Delimiter.PATH
) for the path declarationsResourceProperties.ResourcePropertiesBuilder
YamlPropertiesBuilder.YamlPropertiesBuilderFactory. toProperties(Properties aProperties)
Create aResourceProperties
instance containing the elements of the providedProperties
instance using the path delimiter "/" (Delimiter.PATH
) for the path declarationsstatic Properties.PropertiesBuilder
PropertiesSugar. toPropertiesBuilder(Properties... aProperties)
Creates a newProperties.PropertiesBuilder
from theProperties
.default PropertiesPrecedence.PropertiesPrecedenceBuilder
PropertiesPrecedence.PropertiesPrecedenceBuilder. withAppendProperties(Properties aProperties)
Builder method for thePropertiesPrecedence.MutablePropertiesPrecedence.appendProperties(Properties)
method.default Properties.PropertiesBuilder
Properties.PropertiesBuilder. withInsert(java.lang.String aToPath, Properties aFrom, java.lang.String aFromPath)
Method to semantically emphasize that we support our own types.default Properties.PropertiesBuilder
Properties.PropertiesBuilder. withInsert(Properties aFrom)
Method to semantically emphasize that we support our own types.default Properties.PropertiesBuilder
Properties.PropertiesBuilder. withInsertFrom(Properties aFrom, java.lang.String aFromPath)
Method to semantically emphasize that we support our own types.default Properties.PropertiesBuilder
Properties.PropertiesBuilder. withInsertTo(java.lang.String aToPath, Properties aFrom)
Method to semantically emphasize that we support our own types.default PropertiesPrecedence.PropertiesPrecedenceBuilder
PropertiesPrecedence.PropertiesPrecedenceBuilder. withPrependProperties(Properties aProperties)
Builder method for thePropertiesPrecedence.MutablePropertiesPrecedence.prependProperties(Properties)
method.B
PropertiesAccessor.PropertiesBuilder. withProperties(Properties aProperties)
Sets the properties for theProperties
property.Constructors in org.refcodes.configuration with parameters of type Properties Constructor Description AbstractResourcePropertiesBuilder(Properties aProperties)
Create aAbstractResourcePropertiesBuilder
instance containing the elements of the providedProperties
instance using the default path delimiter "/" (Delimiter.PATH
) for the path declarationsJavaProperties(Properties aProperties)
Create aJavaProperties
instance containing the elements of the providedProperties
instance using the default path delimiter "/" (Delimiter.PATH
) for the path declarationsJavaPropertiesBuilder(Properties aProperties)
Create aJavaPropertiesBuilder
instance containing the elements of the providedProperties
instance using the default path delimiter "/" (Delimiter.PATH
) for the path declarationsJsonProperties(Properties aProperties)
Create aJsonProperties
instance containing the elements of the providedProperties
instance using the default path delimiter "/" (Delimiter.PATH
) for the path declarationsJsonPropertiesBuilder(Properties aProperties)
Create aJsonPropertiesBuilder
instance containing the elements of the providedProperties
instance using the default path delimiter "/" (Delimiter.PATH
) for the path declarationsNormalizedPropertiesDecorator(Properties aProperties)
Decorates the providedProperties
with additional behavior by normalizing the key representing the path pointing to the according value.NormalizedPropertiesDecorator(Properties aProperties, char[] aDelimiters)
Decorates the providedProperties
with additional behavior by normalizing the key representing the path pointing to the according value.PolyglotProperties(PolyglotProperties.PolyglotPropertiesFactory aPropertiesFactory, Properties aProperties)
Create aPolyglotProperties
instance containing the elements of the providedProperties
instance using the default path delimiter "/" (Delimiter.PATH
) for the path declarationsPolyglotProperties(Properties aProperties)
Create aPolyglotProperties
instance containing the elements of the providedProperties
instance using the default path delimiter "/" (Delimiter.PATH
) for the path declarationsPolyglotPropertiesBuilder(PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory aPropertiesBuilderFactory, Properties aProperties)
Create aPolyglotPropertiesBuilder
instance containing the elements of the providedProperties
instance using the default path delimiter "/" (Delimiter.PATH
) for the path declarationsPolyglotPropertiesBuilder(Properties aPropertiesBuilder)
Create aPolyglotPropertiesBuilder
instance containing the elements of the providedProperties
instance using the default path delimiter "/" (Delimiter.PATH
) for the path declarationsProfilePropertiesDecorator(Properties aProperties)
Decorates(!)ProfilePropertiesProjection(Properties aProperties, java.lang.String... aProfiles)
Wraps theProperties
with a profile projection.PropertiesBuilderImpl(Properties aProperties)
Create aProperties.PropertiesBuilder
instance containing the elements of the providedProperties
instance using the default path delimiter "/" (Delimiter.PATH
) for the path declarationsPropertiesImpl(Properties aProperties)
Create aProperties
instance containing the elements of the providedProperties
instance using the default path delimiter "/" (Delimiter.PATH
) for the path declarationsPropertiesPrecedenceBuilderComposite(Properties... aProperties)
Creates aPropertiesPrecedence.PropertiesPrecedenceBuilder
composite querying the providedProperties
in the given order.PropertiesPrecedenceComposite(Properties... aProperties)
Creates aPropertiesPrecedence
composite querying the providedProperties
in the given order.StrictPropertiesDecorator(Properties aProperties)
Decorates the providedProperties
with additional behavior with all the getters to throw aKeyNotFoundRuntimeException
instead of returning null in case the key was not found .TomlProperties(Properties aProperties)
Create aTomlProperties
instance containing the elements of the providedProperties
instance using the default path delimiter "/" (Delimiter.PATH
) for the path declarationsTomlPropertiesBuilder(Properties aProperties)
Create aTomlPropertiesBuilder
instance containing the elements of the providedProperties
instance using the default path delimiter "/" (Delimiter.PATH
) for the path declarationsXmlProperties(Properties aProperties)
Create aXmlProperties
instance containing the elements of the providedProperties
instance using the default path delimiter "/" (Delimiter.PATH
) for the path declarationsXmlPropertiesBuilder(Properties aProperties)
Create aXmlPropertiesBuilder
instance containing the elements of the providedProperties
instance using the default path delimiter "/" (Delimiter.PATH
) for the path declarationsYamlProperties(Properties aProperties)
Create aYamlProperties
instance containing the elements of the providedProperties
instance using the default path delimiter "/" (Delimiter.PATH
) for the path declarationsYamlPropertiesBuilder(Properties aProperties)
Create aYamlPropertiesBuilder
instance containing the elements of the providedProperties
instance using the default path delimiter "/" (Delimiter.PATH
) for the path declarationsConstructor parameters in org.refcodes.configuration with type arguments of type Properties Constructor Description PropertiesPrecedenceBuilderComposite(java.util.List<Properties> aProperties)
Creates aPropertiesPrecedence.PropertiesPrecedenceBuilder
composite querying the providedProperties
in the given order.PropertiesPrecedenceComposite(java.util.List<Properties> aProperties)
Creates aPropertiesPrecedence
composite querying the providedProperties
in the given order.
-