public class SystemProperties extends PropertiesImpl implements Properties
Properties 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 of PropertiesImpl.getDelimiter() and converting all other path
delimiters "/" to the system property's (de facto standard) separator ".". If
accessing failed, then the lower case version of the so transformed key is
probed.
Accessing a system property "console.width" would be done with the path
"/console/width".Properties.MutableProperties, 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.structure.Keys.MutableKeys<K,V>, org.refcodes.structure.Keys.MutableValues<K,V>org.refcodes.mixin.DelimiterAccessor.DelimiterBuilder<B extends org.refcodes.mixin.DelimiterAccessor.DelimiterBuilder<B>>, org.refcodes.mixin.DelimiterAccessor.DelimiterMutator, org.refcodes.mixin.DelimiterAccessor.DelimiterPropertyorg.refcodes.mixin.TypeAccessor.TypeMutator<T>, org.refcodes.mixin.TypeAccessor.TypeProperty<T>org.refcodes.structure.PropertiesAccessorMixin.PropertiesBuilderMixin<T>, org.refcodes.structure.PropertiesAccessorMixin.PropertiesMixin, org.refcodes.structure.PropertiesAccessorMixin.PropertiesMutatorMixin_propertiesDEFAULT_COMMENT| Constructor and Description |
|---|
SystemProperties() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(Object aKey)
The key is transformed to an system property variable by removing a
prefixed "/" path delimiter (as of
PropertiesImpl.getDelimiter() and converting
all other path delimiters "/" to the system property's (de facto
standard) separator ".". |
String |
get(Object aKey)
The key is transformed to a system property by removing a prefixed "/"
path delimiter (as of
PropertiesImpl.getDelimiter() and converting all other
path delimiters "/" to the system property's (de facto standard)
separator ".". |
Set<String> |
keySet()
The keys are transformed to a path by prefixing a "/" path delimiter (as
of
PropertiesImpl.getDelimiter() and converting all other system property's (de
facto standard) separators "." to the path delimiter "/". |
int |
size() |
Collection<String> |
values() |
childrenOf, getDelimiter, getType, isEmpty, retrieveFrom, retrieveTo, toDataStructureclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchildrenOf, containsValue, getType, retrieve, retrieveFrom, retrieveTo, toMap, toProperties, toPropertyPathtoInstance, toInstance, toType, toTypedirectories, directories, entries, entries, fromExternalKey, getArray, getArray, hasParentPath, isArray, isArray, isDirectory, isEntry, isRecord, isRootPath, keySet, paths, paths, records, records, toDataStructure, toDataStructure, toExternalKey, toMap, toNormalizedPath, toNormalizedPath, toParentPath, toPath, toRootPathcontainsKey, 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, useShortpublic String get(Object aKey)
PropertiesImpl.getDelimiter() and converting all other
path delimiters "/" to the system property's (de facto standard)
separator ".". If accessing failed, then the lower case version of the so
transformed key is probed.
get in interface org.refcodes.structure.Keys<String,String>get in class PropertiesImplpublic boolean containsKey(Object aKey)
PropertiesImpl.getDelimiter() and converting
all other path delimiters "/" to the system property's (de facto
standard) separator ".". If accessing failed, then the lower case version
of the so transformed key is probed.
containsKey in interface org.refcodes.structure.Keys<String,String>containsKey in class PropertiesImplpublic Set<String> keySet()
PropertiesImpl.getDelimiter() and converting all other system property's (de
facto standard) separators "." to the path delimiter "/".
keySet in interface org.refcodes.structure.Keys<String,String>keySet in class PropertiesImplpublic Collection<String> values()
values in interface org.refcodes.structure.Keys<String,String>values in class PropertiesImplpublic int size()
size in interface org.refcodes.structure.Containablesize in class PropertiesImplCopyright © 2018. All rights reserved.