org.refcodes.mixin.AnnotatorAccessor
, org.refcodes.struct.CanonicalMap
, org.refcodes.struct.Containable
, org.refcodes.mixin.DelimiterAccessor
, org.refcodes.struct.Dictionary<String,T>
, org.refcodes.mixin.Dumpable
, org.refcodes.struct.InterOperableMap<String>
, org.refcodes.struct.Keys<String,T>
, org.refcodes.struct.PathMap<String>
, Properties
, org.refcodes.mixin.TypeAccessor<String>
ProfileProperties.MutableProfileProperties
, ProfileProperties.ProfilePropertiesBuilder
ProfilePropertiesDecorator
public interface ProfileProperties extends Properties
ProfileProperties
extend the Properties
with
Runtime-Profiles support. Properties belonging to provided Runtime-Profiles
overwrite the default properties. Use toRuntimeProfile()
to generate
accordingly processed Runtime-Profiles with Runtime-Profiles defined below
the getRuntimeProfilesPath()
, which by default is
"/runtime/profiles". As more than one profile can be evaluated (a preceding
profile overwriting succeeding profile), the
getRuntimeProfilesPath()
points to an array with the
Runtime-Profiles denoted as follows (assuming "/runtime/profiles" containing
your active Runtime-Profiles):
getRuntimeProfilesPath()
defaults to "runtime/profiles" represented
by the path defined by PropertiesPath.RUNTIME_PROFILES_PATH
) In case
a value is found at the path "runtime/profiles", this is parsed as a
comma-separated list and converted to an array. The above configuration
therewith may also be written as follows:
runtime/profiles=local,oauth,development
This array beats the
above kind of declaration so that the active Runtime-Profiles can easily be
overwritten by ProfileProperties
supporting Java System-Properties
(passed to the JVM via "-Dx=y") e.g. the
RuntimePropertiesComposite
found in the
refcodes-runtime
artifact. Below find an example on properties
with settings for the above Runtime-Profiles:
toRuntimeProfile()
result in the below default properties:
Modifier and Type | Interface | Description |
---|---|---|
static interface |
ProfileProperties.MutableProfileProperties |
The Interface MutableProfileProperties.
|
static interface |
ProfileProperties.ProfilePropertiesBuilder |
The Interface ProfilePropertiesBuilder.
|
org.refcodes.mixin.AnnotatorAccessor.AnnotatorBuilder<B extends org.refcodes.mixin.AnnotatorAccessor.AnnotatorBuilder<B>>, org.refcodes.mixin.AnnotatorAccessor.AnnotatorMutator, org.refcodes.mixin.AnnotatorAccessor.AnnotatorProperty
org.refcodes.struct.CanonicalMap.CanonicalMapBuilder, org.refcodes.struct.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.struct.Dictionary.MutableDictionary<K extends Object,V extends Object>
org.refcodes.struct.InterOperableMap.InterOperableMapBuilder<T extends Object>, org.refcodes.struct.InterOperableMap.MutableInterOperableMap<T extends Object>
org.refcodes.struct.Keys.MutableKeys<K extends Object,V extends Object>, org.refcodes.struct.Keys.MutableValues<K extends Object,V extends Object>
org.refcodes.struct.PathMap.MutablePathMap<T extends Object>, org.refcodes.struct.PathMap.PathMapBuilder<T extends Object>
Properties.MutableProperties, Properties.PropertiesBuilder
org.refcodes.mixin.TypeAccessor.TypeBuilder<T extends Object,B extends org.refcodes.mixin.TypeAccessor.TypeBuilder<T,B>>, org.refcodes.mixin.TypeAccessor.TypeMutator<T extends Object>, org.refcodes.mixin.TypeAccessor.TypeProperty<T extends Object>
DEFAULT_COMMENT
Modifier and Type | Method | Description |
---|---|---|
default String[] |
getRuntimeProfiles() |
The
getRuntimeProfilesPath() points to an array with the
Runtime-Profiles denoted as follows (pointing to your active
Runtime-Profiles):
runtime/profiles/0=local
runtime/profiles/1=oauth
runtime/profiles/2=development
(getRuntimeProfilesPath() defaults to "runtime/profiles"
represented by the path defined by
PropertiesPath.RUNTIME_PROFILES_PATH ) In case a value is found at
the path "runtime/profiles", this is parsed as a comma-separated list and
converted to an array. |
default String |
getRuntimeProfilesPath() |
Returns the path which points to your active Runtime-Profiles.
|
default Properties |
toRuntimeProfile() |
Evaluates the active Runtime-Profiles as of
getRuntimeProfiles()
and creates the according Properties . |
default Properties |
toRuntimeProfile(String... aProfiles) |
Evaluates the provided Runtime-Profiles and creates the according
Properties . |
asArray, asArray, asArray, asArray, asBooleanArray, asBooleanArray, asBooleanArray, asBooleanArray, asByteArray, asByteArray, asByteArray, asByteArray, asCharArray, asCharArray, asCharArray, asCharArray, asDoubleArray, asDoubleArray, asDoubleArray, asDoubleArray, asFloatArray, asFloatArray, asFloatArray, asFloatArray, asIntArray, asIntArray, asIntArray, asIntArray, asLongArray, asLongArray, asLongArray, asLongArray, asShortArray, asShortArray, asShortArray, asShortArray, queryBetween, toMap, toProperties
getBoolean, getBoolean, getBoolean, getBoolean, getBoolean, getBooleanOr, getBooleanOr, getBooleanOr, getBooleanOr, getBooleanOr, getByte, getByte, getByte, getByte, getByte, getByteOr, getByteOr, getByteOr, getByteOr, getByteOr, getChar, getChar, getChar, getChar, getChar, getCharOr, getCharOr, getCharOr, getCharOr, getCharOr, getClass, getClass, getClass, getClass, getClass, getClassOr, getClassOr, getClassOr, getClassOr, getClassOr, getDouble, getDouble, getDouble, getDouble, getDouble, getDoubleOr, getDoubleOr, getDoubleOr, getDoubleOr, getDoubleOr, getEnum, getEnum, getEnum, getEnum, getEnum, getEnumOr, getEnumOr, getEnumOr, getEnumOr, getEnumOr, getEnumOr, getEnumOr, getEnumOr, getEnumOr, getEnumOr, getFloat, getFloat, getFloat, getFloat, getFloat, getFloatOr, getFloatOr, getFloatOr, getFloatOr, getFloatOr, getInt, getInt, getInt, getInt, getInt, getIntOr, getIntOr, getIntOr, getIntOr, getIntOr, getLong, getLong, getLong, getLong, getLong, getLongOr, getLongOr, getLongOr, getLongOr, getLongOr, getShort, getShort, getShort, getShort, getShort, getShortOr, getShortOr, getShortOr, getShortOr, getShortOr, getString, getString, getString, getString, getString, getStringOr, getStringOr, getStringOr, getStringOr, getStringOr
containsKey, get, getOr, keySet, use, values
children, children, children, children, children, children, containsKey, containsKey, containsKey, dirs, dirs, dirs, dirs, dirs, dirs, findPaths, fromExternalPath, get, get, get, getArray, getArray, getArray, getArray, getArray, getArrayIndexes, getArrayIndexes, getArrayIndexes, getArrayIndexes, getArrayIndexes, getDirIndexes, getDirIndexes, getDirIndexes, getDirIndexes, getDirIndexes, getRootPath, getValueAt, getValueAt, getValueAt, getValueAt, getValueAt, getValueAt, hasChildren, hasChildren, hasChildren, hasChildren, hasChildren, hasDirAt, hasDirAt, hasDirAt, hasDirAt, hasDirAt, hasDirAt, hasDirAt, hasDirAt, hasDirAt, hasDirAt, hasDirAt, hasParentPath, hasPath, hasPath, hasPath, hasPath, hasSubDirs, hasSubDirs, hasSubDirs, hasSubDirs, hasValue, hasValue, hasValue, hasValue, hasValue, hasValueAt, hasValueAt, hasValueAt, hasValueAt, hasValueAt, hasValueAt, hasValueAt, hasValueAt, isArray, isArray, isArray, isArray, isArray, isArray, isChild, isChild, isChild, isChild, isDir, isDir, isDir, isDir, isDir, isEqualTo, isIndexDir, isIndexDir, isIndexDir, isIndexDir, isIndexDir, isLeaf, isLeaf, isLeaf, isLeaf, isLeaf, isRootPath, keySet, keySet, keySet, keySet, keySet, lastArrayIndex, lastArrayIndex, lastArrayIndex, lastArrayIndex, lastArrayIndex, lastArrayIndex, lastDirIndex, lastDirIndex, lastDirIndex, lastDirIndex, lastDirIndex, lastDirIndex, leaves, leaves, leaves, leaves, leaves, leaves, nextArrayIndex, nextArrayIndex, nextArrayIndex, nextArrayIndex, nextArrayIndex, nextArrayIndex, nextDirIndex, nextDirIndex, nextDirIndex, nextDirIndex, nextDirIndex, nextDirIndex, paths, paths, paths, paths, paths, paths, queryPaths, queryPaths, queryPaths, queryPaths, queryPaths, queryPaths, sortedKeys, sortedKeys, sortedKeys, sortedKeys, sortedKeys, sortedKeys, sortedKeys, sortedKeys, sortedKeys, sortedKeys, sortedKeys, sortedKeys, sortedKeys, sortedKeys, sortedKeys, sortedKeys, sortedKeys, sortedKeys, toDataStructure, toDataStructure, toExternalPath, toInstance, toInstance, toLeaf, toMap, toNormalizedPath, toParentPath, toPath, toPath, toPath, toPathElements, toPathList, toPathStack, toPropertyPath, toType, toType
containsValue, getAnnotator, getDelimiter, getDir, getDir, getDir, getDir, getDir, getDirAt, getDirAt, getDirAt, getDirAt, getDirAt, getDirAt, getType, query, query, query, query, query, queryBetween, queryBetween, queryBetween, queryBetween, queryBetween, queryFrom, queryFrom, queryFrom, queryFrom, queryFrom, queryFrom, queryTo, queryTo, queryTo, queryTo, queryTo, queryTo, retrieveBetween, retrieveBetween, retrieveBetween, retrieveBetween, retrieveBetween, retrieveFrom, retrieveFrom, retrieveFrom, retrieveFrom, retrieveFrom, retrieveTo, retrieveTo, retrieveTo, retrieveTo, retrieveTo
default String[] getRuntimeProfiles()
getRuntimeProfilesPath()
points to an array with the
Runtime-Profiles denoted as follows (pointing to your active
Runtime-Profiles):
getRuntimeProfilesPath()
defaults to "runtime/profiles"
represented by the path defined by
PropertiesPath.RUNTIME_PROFILES_PATH
) In case a value is found at
the path "runtime/profiles", this is parsed as a comma-separated list and
converted to an array. The above configuration therewith may also be
written as follows: runtime/profiles=local,oauth,development
This array beats the above kind of declaration so that the active
Runtime-Profiles can easily be overwritten by ProfileProperties
supporting Java System-Properties (passed to the JVM via "-Dx=y") e.g.
the RuntimePropertiesComposite
found in the
refcodes-runtime
artifact.getRuntimeProfilesPath()
.default String getRuntimeProfilesPath()
getRuntimeProfiles()
evaluates the path and creates a list of
active Runtime-Profiles. By default, the path points to the path
represented by PropertiesPath.RUNTIME_PROFILES_PATH
.default Properties toRuntimeProfile()
getRuntimeProfiles()
and creates the according Properties
.Properties
as of the active Runtime-Profiles.default Properties toRuntimeProfile(String... aProfiles)
Properties
.aProfiles
- the profilesProperties
as of the provided Runtime-Profiles.Copyright © 2021. All rights reserved.