Class RuntimePropertiesImpl
- java.lang.Object
-
- org.refcodes.configuration.AbstractPropertiesDecorator<org.refcodes.configuration.Properties>
-
- org.refcodes.configuration.ext.runtime.RuntimePropertiesImpl
-
- All Implemented Interfaces:
org.refcodes.component.Resetable,ArgsParserProperties,RuntimeProperties,org.refcodes.configuration.ProfileProperties,org.refcodes.configuration.Properties,org.refcodes.configuration.ResourceProperties,org.refcodes.configuration.ResourcePropertiesMixin<RuntimeProperties>,org.refcodes.console.ArgsParser,org.refcodes.console.ArgsParserMixin<RuntimeProperties>,org.refcodes.console.RootConditionAccessor,org.refcodes.console.RootConditionAccessor.RootConditionBuilder<RuntimeProperties>,org.refcodes.console.RootConditionAccessor.RootConditionMutator,org.refcodes.mixin.DelimiterAccessor,org.refcodes.mixin.DescriptionAccessor.DescriptionBuilder<RuntimeProperties>,org.refcodes.mixin.DescriptionAccessor.DescriptionMutator,org.refcodes.mixin.Dumpable,org.refcodes.mixin.NameAccessor.NameBuilder<RuntimeProperties>,org.refcodes.mixin.NameAccessor.NameMutator,org.refcodes.mixin.SecretAccessor.SecretBuilder<RuntimeProperties>,org.refcodes.mixin.SecretAccessor.SecretMutator,org.refcodes.mixin.TitleAccessor.TitleBuilder<RuntimeProperties>,org.refcodes.mixin.TitleAccessor.TitleMutator,org.refcodes.mixin.TypeAccessor<RuntimeProperties>,org.refcodes.structure.CanonicalMap,org.refcodes.structure.Containable,org.refcodes.structure.Dictionary<java.lang.String,T>,org.refcodes.structure.Keys<java.lang.String,T>,org.refcodes.structure.PathMap<RuntimeProperties>,org.refcodes.structure.PropertiesAccessorMixin
public class RuntimePropertiesImpl extends org.refcodes.configuration.AbstractPropertiesDecorator<org.refcodes.configuration.Properties> implements RuntimeProperties
TheRuntimePropertiesImplcomposite represent command line properties, system properties as well as environment variables (in that order) and resource properties. TheRuntimePropertiesImplare actually constructed fromArgsParserProperties,SystemProperties,EnvironmentPropertiesandResourcePropertiesinstances (in that precedence). Add theResourcePropertiesvia the following methodsRuntimeProperties.withFile(File),RuntimeProperties.withFilePath(String),RuntimeProperties.withUrl(URL)orRuntimeProperties.withInputStream(InputStream). Obfuscation may be applied to the properties as of theObfuscationPropertiesandObfuscationProperties.ObfuscationPropertiesBuildertypes.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.refcodes.structure.CanonicalMap
org.refcodes.structure.CanonicalMap.CanonicalMapBuilder, org.refcodes.structure.CanonicalMap.MutableCanonicalMap
-
Nested classes/interfaces inherited from interface org.refcodes.mixin.DelimiterAccessor
org.refcodes.mixin.DelimiterAccessor.DelimiterBuilder<B extends org.refcodes.mixin.DelimiterAccessor.DelimiterBuilder<B>>, org.refcodes.mixin.DelimiterAccessor.DelimiterMutator, org.refcodes.mixin.DelimiterAccessor.DelimiterProperty
-
Nested classes/interfaces inherited from interface org.refcodes.structure.Dictionary
org.refcodes.structure.Dictionary.MutableDictionary<K extends java.lang.Object,V extends java.lang.Object>
-
Nested classes/interfaces inherited from interface org.refcodes.structure.PathMap
org.refcodes.structure.PathMap.MutablePathMap<T extends java.lang.Object>, org.refcodes.structure.PathMap.PathMapBuilder<T extends java.lang.Object>
-
Nested classes/interfaces inherited from interface org.refcodes.configuration.ProfileProperties
org.refcodes.configuration.ProfileProperties.MutableProfileProperties, org.refcodes.configuration.ProfileProperties.ProfilePropertiesBuilder
-
Nested classes/interfaces inherited from interface org.refcodes.configuration.Properties
org.refcodes.configuration.Properties.MutableProperties, org.refcodes.configuration.Properties.PropertiesBuilder
-
Nested classes/interfaces inherited from interface org.refcodes.structure.PropertiesAccessorMixin
org.refcodes.structure.PropertiesAccessorMixin.PropertiesBuilderMixin<T extends java.lang.Object>, org.refcodes.structure.PropertiesAccessorMixin.PropertiesMixin, org.refcodes.structure.PropertiesAccessorMixin.PropertiesMutatorMixin
-
Nested classes/interfaces inherited from interface org.refcodes.configuration.ResourceProperties
org.refcodes.configuration.ResourceProperties.MutableResoureProperties, org.refcodes.configuration.ResourceProperties.ResourcePropertiesBuilder
-
Nested classes/interfaces inherited from interface org.refcodes.console.RootConditionAccessor
org.refcodes.console.RootConditionAccessor.RootConditionBuilder<B extends org.refcodes.console.RootConditionAccessor.RootConditionBuilder<B>>, org.refcodes.console.RootConditionAccessor.RootConditionMutator, org.refcodes.console.RootConditionAccessor.RootConditionProperty
-
-
Field Summary
-
Fields inherited from interface org.refcodes.configuration.ext.runtime.RuntimeProperties
DELIMITERS
-
-
Constructor Summary
Constructors Constructor Description RuntimePropertiesImpl()Constructs aRuntimePropertiesinstance with noConditionfor parsing command line arguments.RuntimePropertiesImpl(java.lang.String aSecret)Constructs aRuntimePropertiesinstance with a custom secret for obfuscation.RuntimePropertiesImpl(java.lang.String[] aArgs)Constructs aRuntimePropertiesinstance with noConditionfor parsing command line arguments: As no syntax notation is required by the constructor (no rootCondition), no syntax validation is done.RuntimePropertiesImpl(java.lang.String[] aArgs, java.lang.String aSecret)Constructs aRuntimePropertiesinstance with noConditionfor parsing command line arguments: As no syntax notation is required by the constructor (no rootCondition), no syntax validation is done.RuntimePropertiesImpl(java.lang.String[] aArgs, org.refcodes.runtime.SystemContext aObfuscationMode)Constructs aRuntimePropertiesinstance with noConditionfor parsing command line arguments: As no syntax notation is required by the constructor (no rootCondition), no syntax validation is done.RuntimePropertiesImpl(org.refcodes.configuration.PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory aPropertiesBuilderFactory)Constructs aRuntimePropertiesinstance with noConditionfor parsing command line arguments.RuntimePropertiesImpl(org.refcodes.configuration.PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory aPropertiesBuilderFactory, java.lang.String aSecret)Constructs aRuntimePropertiesinstance with a custom secret for obfuscation.RuntimePropertiesImpl(org.refcodes.configuration.PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory aPropertiesBuilderFactory, java.lang.String[] aArgs)Constructs aRuntimePropertiesinstance with noConditionfor parsing command line arguments: As no syntax notation is required by the constructor (no rootCondition), no syntax validation is done.RuntimePropertiesImpl(org.refcodes.configuration.PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory aPropertiesBuilderFactory, java.lang.String[] aArgs, java.lang.String aSecret)Constructs aRuntimePropertiesinstance with noConditionfor parsing command line arguments: As no syntax notation is required by the constructor (no rootCondition), no syntax validation is done.RuntimePropertiesImpl(org.refcodes.configuration.PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory aPropertiesBuilderFactory, java.lang.String[] aArgs, org.refcodes.runtime.SystemContext aObfuscationMode)Constructs aRuntimePropertiesinstance with noConditionfor parsing command line arguments: As no syntax notation is required by the constructor (no rootCondition), no syntax validation is done.RuntimePropertiesImpl(org.refcodes.configuration.PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory aPropertiesBuilderFactory, org.refcodes.console.Condition aRootCondition)Constructs aRuntimePropertiesinstance with the givenConditionused to parse command line arguments.RuntimePropertiesImpl(org.refcodes.configuration.PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory aPropertiesBuilderFactory, org.refcodes.console.Condition aRootCondition, java.lang.String aSecret)Constructs aRuntimePropertiesinstance with the givenConditionused to parse command line arguments.RuntimePropertiesImpl(org.refcodes.configuration.PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory aPropertiesBuilderFactory, org.refcodes.console.Condition aRootCondition, org.refcodes.runtime.SystemContext aObfuscationMode)Constructs aRuntimePropertiesinstance with the givenConditionused to parse command line arguments.RuntimePropertiesImpl(org.refcodes.configuration.PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory aPropertiesBuilderFactory, org.refcodes.runtime.SystemContext aObfuscationMode)Constructs theRuntimePropertieswith the given obfuscation modeRuntimePropertiesImpl(org.refcodes.console.Condition aRootCondition)Constructs aRuntimePropertiesinstance with the givenConditionused to parse command line arguments.RuntimePropertiesImpl(org.refcodes.console.Condition aRootCondition, java.lang.String aSecret)Constructs aRuntimePropertiesinstance with the givenConditionused to parse command line arguments.RuntimePropertiesImpl(org.refcodes.console.Condition aRootCondition, org.refcodes.runtime.SystemContext aObfuscationMode)Constructs aRuntimePropertiesinstance with the givenConditionused to parse command line arguments.RuntimePropertiesImpl(org.refcodes.runtime.SystemContext aObfuscationMode)Constructs theRuntimePropertieswith the given obfuscation mode
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddProperties(java.io.File aFile, org.refcodes.runtime.ConfigLocator aConfigLocator, char... aDelimiters)Reads theResourceProperties.ResourcePropertiesBuilderfrom the given data sink.protected voidaddProperties(java.io.InputStream aInputStream, char[] aDelimiters)Reads theResourcePropertiesfrom the given data sink.protected voidaddProperties(java.lang.Class<?> aResourceClass, java.lang.String aFilePath, org.refcodes.runtime.ConfigLocator aConfigLocator, char... aDelimiters)Reads theResourceProperties.ResourcePropertiesBuilderfrom the given data sink.protected voidaddProperties(java.net.URL aUrl, char... aDelimiters)Reads theResourcePropertiesfrom the given data sink.protected voidaddProperties(org.refcodes.configuration.Properties aProperties)booleancontainsKey(java.lang.Object aKey)voiderrorLn(java.lang.String aLine)java.util.List<? extends org.refcodes.console.Operand<?>>evalArgs(java.lang.String[] aArgs)java.util.List<? extends org.refcodes.console.Operand<?>>evalArgs(java.lang.String aToPath, java.lang.String[] aArgs)java.util.List<? extends org.refcodes.console.Operand<?>>evalArgs(java.lang.String aToPath, java.util.List<java.lang.String> aArgs)java.util.List<? extends org.refcodes.console.Operand<?>>evalArgs(java.util.List<java.lang.String> aArgs)java.lang.Stringget(java.lang.Object aKey)java.lang.StringgetCopyrightNote()chargetDelimiter()java.lang.StringgetDescription()java.lang.StringgetLicenseNote()protected org.refcodes.configuration.PropertiesgetProperties()org.refcodes.console.ConditiongetRootCondition()booleanisEmpty()java.util.Set<java.lang.String>keySet()voidprintBanner()voidprintCopyrightNote()voidprintDescription()voidprintHelp()voidprintLicenseNote()voidprintLn()voidprintLn(java.lang.String aLine)voidprintOptions()voidprintSeparatorLn()voidprintUsage()org.refcodes.configuration.Propertiesreload()org.refcodes.configuration.Propertiesreload(org.refcodes.configuration.ReloadMode aReloadMode)voidreset()org.refcodes.configuration.PropertiesretrieveFrom(java.lang.String aFromPath)org.refcodes.configuration.PropertiesretrieveTo(java.lang.String aToPath)voidsetBannerFont(org.refcodes.textual.Font aBannerFont)voidsetBannerFontPalette(char[] aColorPalette)voidsetConsoleWidth(int aConsoleWidth)voidsetCopyrightNote(java.lang.String aCopyrightNote)voidsetDescription(java.lang.String aDescription)voidsetErrorOut(java.io.PrintStream aErrorOut)voidsetLicenseNote(java.lang.String aLicenseNote)voidsetLineBreak(java.lang.String aLineBreak)voidsetMaxConsoleWidth(int aMaxConsoleWidth)voidsetName(java.lang.String aName)voidsetObfuscationMode(org.refcodes.runtime.SystemContext aObfuscationMode)Specifies the obfuscation mode to be used.voidsetRootCondition(org.refcodes.console.Condition aRootCondition)voidsetSecret(java.lang.String aSecret)voidsetSeparatorChar(char aSeparatorChar)voidsetStandardOut(java.io.PrintStream aStandardOut)voidsetSyntaxNotation(org.refcodes.console.SyntaxNotation aSyntaxNotation)voidsetTitle(java.lang.String aTitle)voidsetUsageLabel(java.lang.String aUsageLabel)intsize()java.lang.ObjecttoDataStructure(java.lang.String aFromPath)org.refcodes.configuration.PropertiestoRuntimeProfile(java.lang.String... aProfiles)java.lang.StringtoSerialized()Returns the serialized format as of theResourceProperties.ResourcePropertiesBuilderinstance being produced upon invocation of thePolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory.toProperties(Properties)method.java.lang.StringtoSerialized(char aDelimiter)Returns the serialized format as of theResourceProperties.ResourcePropertiesBuilderinstance being produced upon invocation of thePolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory.toProperties(Properties)method.java.util.Collection<java.lang.String>values()RuntimePropertieswithFile(java.io.File aFile, org.refcodes.runtime.ConfigLocator aConfigLocator, char... aDelimiters)RuntimePropertieswithFilePath(java.lang.Class<?> aResourceClass, java.lang.String aFilePath, org.refcodes.runtime.ConfigLocator aConfigLocator, char... aDelimiters)RuntimePropertieswithInputStream(java.io.InputStream aInputStream, char... aDelimiters)RuntimePropertieswithParseArgs(java.lang.String[] aArgs)RuntimePropertieswithProperties(org.refcodes.configuration.Properties aProperties)A hook for you to providePropertiesprogrammatically.RuntimePropertieswithUrl(java.net.URL aUrl, char... aDelimiters)-
Methods inherited from interface org.refcodes.structure.CanonicalMap
getBoolean, getBoolean, getBooleanOr, getBooleanOr, getByte, getByte, getByteOr, getByteOr, getCharacter, getCharacter, getCharacterOr, getCharacterOr, getDouble, getDouble, getDoubleOr, getDoubleOr, getFloat, getFloat, getFloatOr, getFloatOr, getInteger, getInteger, getIntegerOr, getIntegerOr, getLong, getLong, getLongOr, getLongOr, getShort, getShort, getShortOr, getShortOr, toInstance, toInstance, toMap, toProperties, toType, toType
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.refcodes.structure.PathMap
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, getDirAt, getDirAt, getDirAt, getDirAt, 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, hasValueAt, hasValueAt, hasValueAt, hasValueAt, hasValueAt, hasValueAt, hasValueAt, hasValueAt, isArray, isArray, isArray, isArray, isArray, isArray, isArrayIndex, isArrayIndex, isArrayIndex, isArrayIndex, isArrayIndex, isArrayIndex, isChild, isChild, isChild, isChild, isDir, isDir, isDir, isDir, isDir, isDirIndex, isDirIndex, isDirIndex, isDirIndex, isDirIndex, isLeaf, isLeaf, isLeaf, isLeaf, isLeaf, isRootPath, 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, sortedKeys, toDataStructure, toExternalPath, toLeaf, toMap, toNormalizedPath, toParentPath, toPath, toPath, toPath, toPathElements, toPathList, toPathStack, toPropertyPath
-
Methods inherited from interface org.refcodes.configuration.ProfileProperties
getRuntimeProfiles, getRuntimeProfilesPath, toRuntimeProfile
-
Methods inherited from interface org.refcodes.configuration.Properties
containsValue, getDirAt, getDirAt, getType, query, query, query, query, queryBetween, queryBetween, queryBetween, queryBetween, queryBetween, queryFrom, queryFrom, queryFrom, queryFrom, queryFrom, queryTo, queryTo, queryTo, queryTo, queryTo, retrieveBetween, retrieveBetween, retrieveBetween, retrieveBetween, retrieveBetween, retrieveFrom, retrieveFrom, retrieveFrom, retrieveFrom, retrieveTo, retrieveTo, retrieveTo, retrieveTo
-
Methods inherited from interface org.refcodes.structure.PropertiesAccessorMixin
asArray, asArray, asArray, asArray, asBooleanArray, asBooleanArray, asBooleanArray, asBooleanArray, asByteArray, asByteArray, asByteArray, asByteArray, asCharacterArray, asCharacterArray, asCharacterArray, asCharacterArray, asDoubleArray, asDoubleArray, asDoubleArray, asDoubleArray, asFloatArray, asFloatArray, asFloatArray, asFloatArray, asIntegerArray, asIntegerArray, asIntegerArray, asIntegerArray, asLongArray, asLongArray, asLongArray, asLongArray, asShortArray, asShortArray, asShortArray, asShortArray, getBoolean, getBoolean, getBooleanOr, getBooleanOr, getByte, getByte, getByteOr, getByteOr, getCharacter, getCharacter, getCharacterOr, getCharacterOr, getDouble, getDouble, getDoubleOr, getDoubleOr, getFloat, getFloat, getFloatOr, getFloatOr, getInteger, getInteger, getIntegerOr, getIntegerOr, getLong, getLong, getLongOr, getLongOr, getShort, getShort, getShortOr, getShortOr
-
Methods inherited from interface org.refcodes.configuration.ResourcePropertiesMixin
withFile, withFilePath, withFilePath, withFilePath
-
Methods inherited from interface org.refcodes.configuration.ext.runtime.RuntimeProperties
withBannerFont, withBannerFontPalette, withConsoleWidth, withCopyrightNote, withDescription, withErrorOut, withEvalArgs, withEvalArgs, withEvalArgs, withEvalArgs, withFile, withFile, withFilePath, withFilePath, withInputStream, withLicenseNote, withLineBreak, withMaxConsoleWidth, withName, withObfuscationMode, withParseArgs, withRootCondition, withSecret, withSeparatorChar, withStandardOut, withSyntaxNotation, withTitle, withUrl, withUsageLabel
-
-
-
-
Constructor Detail
-
RuntimePropertiesImpl
public RuntimePropertiesImpl()
Constructs aRuntimePropertiesinstance with noConditionfor parsing command line arguments. As no syntax notation is required by the constructor (no rootCondition), no syntax validation is done. Therefore the properties are heuristically determined from the provided command line arguments when invokingRuntimeProperties.withEvalArgs(String[]).
-
RuntimePropertiesImpl
public RuntimePropertiesImpl(java.lang.String[] aArgs)
Constructs aRuntimePropertiesinstance with noConditionfor parsing command line arguments: As no syntax notation is required by the constructor (no rootCondition), no syntax validation is done. Therefore the properties are heuristically determined from the provided command line arguments.- Parameters:
aArgs- The command line arguments to be evaluated.
-
RuntimePropertiesImpl
public RuntimePropertiesImpl(org.refcodes.console.Condition aRootCondition)
Constructs aRuntimePropertiesinstance with the givenConditionused to parse command line arguments.- Parameters:
aRootCondition- The root condition being the node from which parsing the command line arguments starts. Parse the command line arguments viaevalArgs(String[]).
-
RuntimePropertiesImpl
public RuntimePropertiesImpl(org.refcodes.runtime.SystemContext aObfuscationMode)
Constructs theRuntimePropertieswith the given obfuscation mode- Parameters:
aObfuscationMode- TheSystemContextspecifies which level of obfuscation is to be used when encountering upon obfuscated properties: E.g. obfuscation may be bound to the host, the "secret" used for obfuscation being the same for all applications on the same host or obfuscation may be bound to the application, being different for different applications on the same host.
-
RuntimePropertiesImpl
public RuntimePropertiesImpl(java.lang.String[] aArgs, org.refcodes.runtime.SystemContext aObfuscationMode)Constructs aRuntimePropertiesinstance with noConditionfor parsing command line arguments: As no syntax notation is required by the constructor (no rootCondition), no syntax validation is done. Therefore the properties are heuristically determined from the provided command line arguments. Also constructs theRuntimePropertieswith the given obfuscation mode- Parameters:
aArgs- The command line arguments to be evaluated.aObfuscationMode- TheSystemContextspecifies which level of obfuscation is to be used when encountering upon obfuscated properties: E.g. obfuscation may be bound to the host, the "secret" used for obfuscation being the same for all applications on the same host or obfuscation may be bound to the application, being different for different applications on the same host.
-
RuntimePropertiesImpl
public RuntimePropertiesImpl(org.refcodes.console.Condition aRootCondition, org.refcodes.runtime.SystemContext aObfuscationMode)Constructs aRuntimePropertiesinstance with the givenConditionused to parse command line arguments. Also constructs theRuntimePropertieswith the given obfuscation mode.- Parameters:
aRootCondition- The root condition being the node from which parsing the command line arguments starts. Parse the command line arguments viaevalArgs(String[]).aObfuscationMode- TheSystemContextspecifies which level of obfuscation is to be used when encountering upon obfuscated properties: E.g. obfuscation may be bound to the host, the "secret" used for obfuscation being the same for all applications on the same host or obfuscation may be bound to the application, being different for different applications on the same host.
-
RuntimePropertiesImpl
public RuntimePropertiesImpl(java.lang.String aSecret)
Constructs aRuntimePropertiesinstance with a custom secret for obfuscation.- Parameters:
aSecret- The secret to be used when encountering upon obfuscated properties.
-
RuntimePropertiesImpl
public RuntimePropertiesImpl(java.lang.String[] aArgs, java.lang.String aSecret)Constructs aRuntimePropertiesinstance with noConditionfor parsing command line arguments: As no syntax notation is required by the constructor (no rootCondition), no syntax validation is done. Therefore the properties are heuristically determined from the provided command line arguments. Also constructs aRuntimePropertiesinstance with a custom secret for obfuscation.- Parameters:
aArgs- The command line arguments to be evaluated.aSecret- The secret to be used when encountering upon obfuscated properties.
-
RuntimePropertiesImpl
public RuntimePropertiesImpl(org.refcodes.console.Condition aRootCondition, java.lang.String aSecret)Constructs aRuntimePropertiesinstance with the givenConditionused to parse command line arguments. Also constructs aRuntimePropertiesinstance with a custom secret for obfuscation.- Parameters:
aRootCondition- The root condition being the node from which parsing the command line arguments starts. Parse the command line arguments viaevalArgs(String[]).aSecret- The secret to be used when encountering upon obfuscated properties.
-
RuntimePropertiesImpl
public RuntimePropertiesImpl(org.refcodes.configuration.PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory aPropertiesBuilderFactory)
Constructs aRuntimePropertiesinstance with noConditionfor parsing command line arguments. As no syntax notation is required by the constructor (no rootCondition), no syntax validation is done. Therefore the properties are heuristically determined from the provided command line arguments when invokingRuntimeProperties.withEvalArgs(String[]).- Parameters:
aPropertiesBuilderFactory- The factory to use when constructingResourcePropertiesinstances.
-
RuntimePropertiesImpl
public RuntimePropertiesImpl(org.refcodes.configuration.PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory aPropertiesBuilderFactory, java.lang.String[] aArgs)Constructs aRuntimePropertiesinstance with noConditionfor parsing command line arguments: As no syntax notation is required by the constructor (no rootCondition), no syntax validation is done. Therefore the properties are heuristically determined from the provided command line arguments.- Parameters:
aPropertiesBuilderFactory- The factory to use when constructingResourcePropertiesinstances.aArgs- The command line arguments to be evaluated.
-
RuntimePropertiesImpl
public RuntimePropertiesImpl(org.refcodes.configuration.PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory aPropertiesBuilderFactory, org.refcodes.console.Condition aRootCondition)Constructs aRuntimePropertiesinstance with the givenConditionused to parse command line arguments.- Parameters:
aPropertiesBuilderFactory- The factory to use when constructingResourcePropertiesinstances.aRootCondition- The root condition being the node from which parsing the command line arguments starts. Parse the command line arguments viaevalArgs(String[]).
-
RuntimePropertiesImpl
public RuntimePropertiesImpl(org.refcodes.configuration.PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory aPropertiesBuilderFactory, org.refcodes.runtime.SystemContext aObfuscationMode)Constructs theRuntimePropertieswith the given obfuscation mode- Parameters:
aPropertiesBuilderFactory- The factory to use when constructingResourcePropertiesinstances.aObfuscationMode- TheSystemContextspecifies which level of obfuscation is to be used when encountering upon obfuscated properties: E.g. obfuscation may be bound to the host, the "secret" used for obfuscation being the same for all applications on the same host or obfuscation may be bound to the application, being different for different applications on the same host.
-
RuntimePropertiesImpl
public RuntimePropertiesImpl(org.refcodes.configuration.PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory aPropertiesBuilderFactory, java.lang.String[] aArgs, org.refcodes.runtime.SystemContext aObfuscationMode)Constructs aRuntimePropertiesinstance with noConditionfor parsing command line arguments: As no syntax notation is required by the constructor (no rootCondition), no syntax validation is done. Therefore the properties are heuristically determined from the provided command line arguments. Also constructs theRuntimePropertieswith the given obfuscation mode- Parameters:
aPropertiesBuilderFactory- The factory to use when constructingResourcePropertiesinstances.aArgs- The command line arguments to be evaluated.aObfuscationMode- TheSystemContextspecifies which level of obfuscation is to be used when encountering upon obfuscated properties: E.g. obfuscation may be bound to the host, the "secret" used for obfuscation being the same for all applications on the same host or obfuscation may be bound to the application, being different for different applications on the same host.
-
RuntimePropertiesImpl
public RuntimePropertiesImpl(org.refcodes.configuration.PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory aPropertiesBuilderFactory, org.refcodes.console.Condition aRootCondition, org.refcodes.runtime.SystemContext aObfuscationMode)Constructs aRuntimePropertiesinstance with the givenConditionused to parse command line arguments. Also constructs theRuntimePropertieswith the given obfuscation mode.- Parameters:
aPropertiesBuilderFactory- The factory to use when constructingResourcePropertiesinstances.aRootCondition- The root condition being the node from which parsing the command line arguments starts. Parse the command line arguments viaevalArgs(String[]).aObfuscationMode- TheSystemContextspecifies which level of obfuscation is to be used when encountering upon obfuscated properties: E.g. obfuscation may be bound to the host, the "secret" used for obfuscation being the same for all applications on the same host or obfuscation may be bound to the application, being different for different applications on the same host.
-
RuntimePropertiesImpl
public RuntimePropertiesImpl(org.refcodes.configuration.PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory aPropertiesBuilderFactory, java.lang.String aSecret)Constructs aRuntimePropertiesinstance with a custom secret for obfuscation.- Parameters:
aPropertiesBuilderFactory- The factory to use when constructingResourcePropertiesinstances.aSecret- The secret to be used when encountering upon obfuscated properties.
-
RuntimePropertiesImpl
public RuntimePropertiesImpl(org.refcodes.configuration.PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory aPropertiesBuilderFactory, java.lang.String[] aArgs, java.lang.String aSecret)Constructs aRuntimePropertiesinstance with noConditionfor parsing command line arguments: As no syntax notation is required by the constructor (no rootCondition), no syntax validation is done. Therefore the properties are heuristically determined from the provided command line arguments. Also constructs aRuntimePropertiesinstance with a custom secret for obfuscation.- Parameters:
aPropertiesBuilderFactory- The factory to use when constructingResourcePropertiesinstances.aArgs- The command line arguments to be evaluated.aSecret- The secret to be used when encountering upon obfuscated properties.
-
RuntimePropertiesImpl
public RuntimePropertiesImpl(org.refcodes.configuration.PolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory aPropertiesBuilderFactory, org.refcodes.console.Condition aRootCondition, java.lang.String aSecret)Constructs aRuntimePropertiesinstance with the givenConditionused to parse command line arguments. Also constructs aRuntimePropertiesinstance with a custom secret for obfuscation.- Parameters:
aPropertiesBuilderFactory- The factory to use when constructingResourcePropertiesinstances.aRootCondition- The root condition being the node from which parsing the command line arguments starts. Parse the command line arguments viaevalArgs(String[]).aSecret- The secret to be used when encountering upon obfuscated properties.
-
-
Method Detail
-
getCopyrightNote
public java.lang.String getCopyrightNote()
- Specified by:
getCopyrightNotein interfaceorg.refcodes.console.ArgsParser
-
getDescription
public java.lang.String getDescription()
- Specified by:
getDescriptionin interfaceorg.refcodes.console.ArgsParser
-
getLicenseNote
public java.lang.String getLicenseNote()
- Specified by:
getLicenseNotein interfaceorg.refcodes.console.ArgsParser
-
setRootCondition
public void setRootCondition(org.refcodes.console.Condition aRootCondition)
- Specified by:
setRootConditionin interfaceorg.refcodes.console.RootConditionAccessor.RootConditionMutator
-
setSecret
public void setSecret(java.lang.String aSecret)
- Specified by:
setSecretin interfaceorg.refcodes.mixin.SecretAccessor.SecretMutator
-
setObfuscationMode
public void setObfuscationMode(org.refcodes.runtime.SystemContext aObfuscationMode)
Specifies the obfuscation mode to be used.- Specified by:
setObfuscationModein interfaceRuntimeProperties- Parameters:
aObfuscationMode- TheSystemContextspecifies which level of obfuscation is to be used when encountering upon obfuscated properties: E.g. obfuscation may be bound to the host, the "secret" used for obfuscation being the same for all applications on the same host or obfuscation may be bound to the application, being different for different applications on the same host.
-
withProperties
public RuntimeProperties withProperties(org.refcodes.configuration.Properties aProperties)
A hook for you to providePropertiesprogrammatically. The later you addProperties, the lower their precedence.- Specified by:
withPropertiesin interfaceRuntimeProperties- Parameters:
aProperties- ThePropertiesto be added.- Returns:
- This instance as of the builder pattern to apply method chaining.
-
addProperties
protected void addProperties(org.refcodes.configuration.Properties aProperties)
-
withFile
public RuntimeProperties withFile(java.io.File aFile, org.refcodes.runtime.ConfigLocator aConfigLocator, char... aDelimiters) throws java.io.IOException, java.text.ParseException
- Specified by:
withFilein interfaceorg.refcodes.configuration.ResourcePropertiesMixin<RuntimeProperties>- Throws:
java.io.IOExceptionjava.text.ParseException
-
withInputStream
public RuntimeProperties withInputStream(java.io.InputStream aInputStream, char... aDelimiters) throws java.io.IOException, java.text.ParseException
- Specified by:
withInputStreamin interfaceorg.refcodes.configuration.ResourcePropertiesMixin<RuntimeProperties>- Throws:
java.io.IOExceptionjava.text.ParseException
-
withFilePath
public RuntimeProperties withFilePath(java.lang.Class<?> aResourceClass, java.lang.String aFilePath, org.refcodes.runtime.ConfigLocator aConfigLocator, char... aDelimiters) throws java.io.IOException, java.text.ParseException
- Specified by:
withFilePathin interfaceorg.refcodes.configuration.ResourcePropertiesMixin<RuntimeProperties>- Throws:
java.io.IOExceptionjava.text.ParseException
-
withUrl
public RuntimeProperties withUrl(java.net.URL aUrl, char... aDelimiters) throws java.io.IOException, java.text.ParseException
- Specified by:
withUrlin interfaceorg.refcodes.configuration.ResourcePropertiesMixin<RuntimeProperties>- Throws:
java.io.IOExceptionjava.text.ParseException
-
withParseArgs
public RuntimeProperties withParseArgs(java.lang.String[] aArgs) throws org.refcodes.console.UnknownArgsException, org.refcodes.console.AmbiguousArgsException, org.refcodes.console.SuperfluousArgsException, org.refcodes.console.ParseArgsException
- Specified by:
withParseArgsin interfaceorg.refcodes.console.ArgsParser- Specified by:
withParseArgsin interfaceorg.refcodes.console.ArgsParserMixin<RuntimeProperties>- Specified by:
withParseArgsin interfaceRuntimeProperties- Throws:
org.refcodes.console.UnknownArgsExceptionorg.refcodes.console.AmbiguousArgsExceptionorg.refcodes.console.SuperfluousArgsExceptionorg.refcodes.console.ParseArgsException
-
errorLn
public void errorLn(java.lang.String aLine)
- Specified by:
errorLnin interfaceorg.refcodes.console.ArgsParser
-
evalArgs
public java.util.List<? extends org.refcodes.console.Operand<?>> evalArgs(java.util.List<java.lang.String> aArgs) throws org.refcodes.console.UnknownArgsException, org.refcodes.console.AmbiguousArgsException, org.refcodes.console.SuperfluousArgsException, org.refcodes.console.ParseArgsException- Specified by:
evalArgsin interfaceorg.refcodes.console.ArgsParser- Specified by:
evalArgsin interfaceArgsParserProperties- Throws:
org.refcodes.console.UnknownArgsExceptionorg.refcodes.console.AmbiguousArgsExceptionorg.refcodes.console.SuperfluousArgsExceptionorg.refcodes.console.ParseArgsException
-
evalArgs
public java.util.List<? extends org.refcodes.console.Operand<?>> evalArgs(java.lang.String aToPath, java.util.List<java.lang.String> aArgs) throws org.refcodes.console.UnknownArgsException, org.refcodes.console.AmbiguousArgsException, org.refcodes.console.SuperfluousArgsException, org.refcodes.console.ParseArgsException- Specified by:
evalArgsin interfaceArgsParserProperties- Throws:
org.refcodes.console.UnknownArgsExceptionorg.refcodes.console.AmbiguousArgsExceptionorg.refcodes.console.SuperfluousArgsExceptionorg.refcodes.console.ParseArgsException
-
evalArgs
public java.util.List<? extends org.refcodes.console.Operand<?>> evalArgs(java.lang.String aToPath, java.lang.String[] aArgs) throws org.refcodes.console.UnknownArgsException, org.refcodes.console.AmbiguousArgsException, org.refcodes.console.SuperfluousArgsException, org.refcodes.console.ParseArgsException- Specified by:
evalArgsin interfaceArgsParserProperties- Throws:
org.refcodes.console.UnknownArgsExceptionorg.refcodes.console.AmbiguousArgsExceptionorg.refcodes.console.SuperfluousArgsExceptionorg.refcodes.console.ParseArgsException
-
evalArgs
public java.util.List<? extends org.refcodes.console.Operand<?>> evalArgs(java.lang.String[] aArgs) throws org.refcodes.console.UnknownArgsException, org.refcodes.console.AmbiguousArgsException, org.refcodes.console.SuperfluousArgsException, org.refcodes.console.ParseArgsException- Specified by:
evalArgsin interfaceorg.refcodes.console.ArgsParser- Specified by:
evalArgsin interfaceArgsParserProperties- Throws:
org.refcodes.console.UnknownArgsExceptionorg.refcodes.console.AmbiguousArgsExceptionorg.refcodes.console.SuperfluousArgsExceptionorg.refcodes.console.ParseArgsException
-
getRootCondition
public org.refcodes.console.Condition getRootCondition()
- Specified by:
getRootConditionin interfaceorg.refcodes.console.ArgsParser- Specified by:
getRootConditionin interfaceorg.refcodes.console.RootConditionAccessor
-
printBanner
public void printBanner()
- Specified by:
printBannerin interfaceorg.refcodes.console.ArgsParser
-
printCopyrightNote
public void printCopyrightNote()
- Specified by:
printCopyrightNotein interfaceorg.refcodes.console.ArgsParser
-
printDescription
public void printDescription()
- Specified by:
printDescriptionin interfaceorg.refcodes.console.ArgsParser
-
printHelp
public void printHelp()
- Specified by:
printHelpin interfaceorg.refcodes.console.ArgsParser
-
printLicenseNote
public void printLicenseNote()
- Specified by:
printLicenseNotein interfaceorg.refcodes.console.ArgsParser
-
printLn
public void printLn()
- Specified by:
printLnin interfaceorg.refcodes.console.ArgsParser
-
printLn
public void printLn(java.lang.String aLine)
- Specified by:
printLnin interfaceorg.refcodes.console.ArgsParser
-
printOptions
public void printOptions()
- Specified by:
printOptionsin interfaceorg.refcodes.console.ArgsParser
-
printSeparatorLn
public void printSeparatorLn()
- Specified by:
printSeparatorLnin interfaceorg.refcodes.console.ArgsParser
-
printUsage
public void printUsage()
- Specified by:
printUsagein interfaceorg.refcodes.console.ArgsParser
-
reset
public void reset()
- Specified by:
resetin interfaceorg.refcodes.component.Resetable
-
setBannerFont
public void setBannerFont(org.refcodes.textual.Font aBannerFont)
- Specified by:
setBannerFontin interfaceorg.refcodes.console.ArgsParser
-
setBannerFontPalette
public void setBannerFontPalette(char[] aColorPalette)
- Specified by:
setBannerFontPalettein interfaceorg.refcodes.console.ArgsParser
-
setConsoleWidth
public void setConsoleWidth(int aConsoleWidth)
- Specified by:
setConsoleWidthin interfaceorg.refcodes.console.ArgsParser
-
setCopyrightNote
public void setCopyrightNote(java.lang.String aCopyrightNote)
- Specified by:
setCopyrightNotein interfaceorg.refcodes.console.ArgsParser
-
setDescription
public void setDescription(java.lang.String aDescription)
- Specified by:
setDescriptionin interfaceorg.refcodes.mixin.DescriptionAccessor.DescriptionMutator
-
setErrorOut
public void setErrorOut(java.io.PrintStream aErrorOut)
- Specified by:
setErrorOutin interfaceorg.refcodes.console.ArgsParser
-
setLicenseNote
public void setLicenseNote(java.lang.String aLicenseNote)
- Specified by:
setLicenseNotein interfaceorg.refcodes.console.ArgsParser
-
setLineBreak
public void setLineBreak(java.lang.String aLineBreak)
- Specified by:
setLineBreakin interfaceorg.refcodes.console.ArgsParser
-
setMaxConsoleWidth
public void setMaxConsoleWidth(int aMaxConsoleWidth)
- Specified by:
setMaxConsoleWidthin interfaceorg.refcodes.console.ArgsParser
-
setName
public void setName(java.lang.String aName)
- Specified by:
setNamein interfaceorg.refcodes.mixin.NameAccessor.NameMutator
-
setSeparatorChar
public void setSeparatorChar(char aSeparatorChar)
- Specified by:
setSeparatorCharin interfaceorg.refcodes.console.ArgsParser
-
setStandardOut
public void setStandardOut(java.io.PrintStream aStandardOut)
- Specified by:
setStandardOutin interfaceorg.refcodes.console.ArgsParser
-
setSyntaxNotation
public void setSyntaxNotation(org.refcodes.console.SyntaxNotation aSyntaxNotation)
- Specified by:
setSyntaxNotationin interfaceorg.refcodes.console.ArgsParser
-
setTitle
public void setTitle(java.lang.String aTitle)
- Specified by:
setTitlein interfaceorg.refcodes.mixin.TitleAccessor.TitleMutator
-
setUsageLabel
public void setUsageLabel(java.lang.String aUsageLabel)
- Specified by:
setUsageLabelin interfaceorg.refcodes.console.ArgsParser
-
reload
public org.refcodes.configuration.Properties reload() throws java.io.IOException, java.lang.IllegalStateException, java.text.ParseException- Specified by:
reloadin interfaceorg.refcodes.configuration.ResourceProperties- Throws:
java.io.IOExceptionjava.lang.IllegalStateExceptionjava.text.ParseException
-
reload
public org.refcodes.configuration.Properties reload(org.refcodes.configuration.ReloadMode aReloadMode) throws java.io.IOException, java.lang.IllegalStateException, java.text.ParseException- Specified by:
reloadin interfaceorg.refcodes.configuration.ResourceProperties- Throws:
java.io.IOExceptionjava.lang.IllegalStateExceptionjava.text.ParseException
-
getDelimiter
public char getDelimiter()
- Specified by:
getDelimiterin interfaceorg.refcodes.mixin.DelimiterAccessor- Specified by:
getDelimiterin interfaceorg.refcodes.configuration.Properties- Overrides:
getDelimiterin classorg.refcodes.configuration.AbstractPropertiesDecorator<org.refcodes.configuration.Properties>
-
size
public int size()
- Specified by:
sizein interfaceorg.refcodes.structure.Containable- Overrides:
sizein classorg.refcodes.configuration.AbstractPropertiesDecorator<org.refcodes.configuration.Properties>
-
containsKey
public boolean containsKey(java.lang.Object aKey)
- Specified by:
containsKeyin interfaceorg.refcodes.structure.Keys<java.lang.String,T extends java.lang.Object>- Overrides:
containsKeyin classorg.refcodes.configuration.AbstractPropertiesDecorator<org.refcodes.configuration.Properties>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceorg.refcodes.structure.Containable- Overrides:
isEmptyin classorg.refcodes.configuration.AbstractPropertiesDecorator<org.refcodes.configuration.Properties>
-
get
public java.lang.String get(java.lang.Object aKey)
- Specified by:
getin interfaceorg.refcodes.structure.Keys<java.lang.String,T extends java.lang.Object>- Overrides:
getin classorg.refcodes.configuration.AbstractPropertiesDecorator<org.refcodes.configuration.Properties>
-
keySet
public java.util.Set<java.lang.String> keySet()
- Specified by:
keySetin interfaceorg.refcodes.structure.Keys<java.lang.String,T extends java.lang.Object>- Overrides:
keySetin classorg.refcodes.configuration.AbstractPropertiesDecorator<org.refcodes.configuration.Properties>
-
values
public java.util.Collection<java.lang.String> values()
- Specified by:
valuesin interfaceorg.refcodes.structure.Keys<java.lang.String,T extends java.lang.Object>- Overrides:
valuesin classorg.refcodes.configuration.AbstractPropertiesDecorator<org.refcodes.configuration.Properties>
-
retrieveFrom
public org.refcodes.configuration.Properties retrieveFrom(java.lang.String aFromPath)
- Specified by:
retrieveFromin interfaceorg.refcodes.structure.CanonicalMap- Specified by:
retrieveFromin interfaceorg.refcodes.structure.PathMap<RuntimeProperties>- Specified by:
retrieveFromin interfaceorg.refcodes.configuration.Properties- Overrides:
retrieveFromin classorg.refcodes.configuration.AbstractPropertiesDecorator<org.refcodes.configuration.Properties>
-
retrieveTo
public org.refcodes.configuration.Properties retrieveTo(java.lang.String aToPath)
- Specified by:
retrieveToin interfaceorg.refcodes.structure.CanonicalMap- Specified by:
retrieveToin interfaceorg.refcodes.structure.PathMap<RuntimeProperties>- Specified by:
retrieveToin interfaceorg.refcodes.configuration.Properties- Overrides:
retrieveToin classorg.refcodes.configuration.AbstractPropertiesDecorator<org.refcodes.configuration.Properties>
-
toDataStructure
public java.lang.Object toDataStructure(java.lang.String aFromPath)
- Specified by:
toDataStructurein interfaceorg.refcodes.structure.PathMap<RuntimeProperties>- Overrides:
toDataStructurein classorg.refcodes.configuration.AbstractPropertiesDecorator<org.refcodes.configuration.Properties>
-
toSerialized
public java.lang.String toSerialized()
Returns the serialized format as of theResourceProperties.ResourcePropertiesBuilderinstance being produced upon invocation of thePolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory.toProperties(Properties)method. The behavior of this method is implementation specific. See the javadoc of the implementation in question (such astoSerialized()) for implementation details.- Specified by:
toSerializedin interfaceorg.refcodes.configuration.ResourceProperties- Specified by:
toSerializedin interfaceRuntimeProperties
-
toSerialized
public java.lang.String toSerialized(char aDelimiter)
Returns the serialized format as of theResourceProperties.ResourcePropertiesBuilderinstance being produced upon invocation of thePolyglotPropertiesBuilder.PolyglotPropertiesBuilderFactory.toProperties(Properties)method. The behavior of this method is implementation specific. See the javadoc of the implementation in question (such astoSerialized()) for implementation details.- Specified by:
toSerializedin interfaceorg.refcodes.configuration.ResourceProperties- Specified by:
toSerializedin interfaceRuntimeProperties
-
toRuntimeProfile
public org.refcodes.configuration.Properties toRuntimeProfile(java.lang.String... aProfiles)
- Specified by:
toRuntimeProfilein interfaceorg.refcodes.configuration.ProfileProperties
-
getProperties
protected org.refcodes.configuration.Properties getProperties()
- Overrides:
getPropertiesin classorg.refcodes.configuration.AbstractPropertiesDecorator<org.refcodes.configuration.Properties>
-
addProperties
protected void addProperties(java.io.File aFile, org.refcodes.runtime.ConfigLocator aConfigLocator, char... aDelimiters) throws java.io.IOException, java.text.ParseExceptionReads theResourceProperties.ResourcePropertiesBuilderfrom the given data sink.- Parameters:
aFile- The data sink from which to read theResourceProperties.ResourcePropertiesBuilder.aConfigLocator- TheConfigLocatorspecifying where to seek for properties.aDelimiters- The delimiters in the properties file to identity a path delimiter.- Throws:
java.io.IOException- Thrown in case there were problems reading the data sink.java.text.ParseException- Thrown in case there were problems parsing the data from the data sink.
-
addProperties
protected void addProperties(java.io.InputStream aInputStream, char[] aDelimiters) throws java.io.IOException, java.text.ParseExceptionReads theResourcePropertiesfrom the given data sink.- Parameters:
aInputStream- The data sink from which to read theResourceProperties.aDelimiters- The delimiters in the properties file to identity a path delimiter.- Throws:
java.io.IOException- Thrown in case there were problems reading the data sink.java.text.ParseException- Thrown in case there were problems parsing the data from the data sink.
-
addProperties
protected void addProperties(java.lang.Class<?> aResourceClass, java.lang.String aFilePath, org.refcodes.runtime.ConfigLocator aConfigLocator, char... aDelimiters) throws java.io.IOException, java.text.ParseExceptionReads theResourceProperties.ResourcePropertiesBuilderfrom the given data sink.- Parameters:
aResourceClass- The class which's class loader is to take care of loading the properties (from inside a JAR).aFilePath- The data sink from which to read theResourceProperties.ResourcePropertiesBuilder.aConfigLocator- TheConfigLocatorspecifying where to seek for properties.aDelimiters- The delimiters in the properties file to identity a path delimiter.- Throws:
java.io.IOException- Thrown in case there were problems reading the data sink.java.text.ParseException- Thrown in case there were problems parsing the data from the data sink.
-
addProperties
protected void addProperties(java.net.URL aUrl, char... aDelimiters) throws java.io.IOException, java.text.ParseExceptionReads theResourcePropertiesfrom the given data sink.- Parameters:
aUrl- The data sink from which to read theResourceProperties.aDelimiters- The delimiters in the properties file to identity a path delimiter.- Throws:
java.io.IOException- Thrown in case there were problems reading the data sink.java.text.ParseException- Thrown in case there were problems parsing the data from the data sink.
-
-