Top Inners Fields Constructors Methods
com.mchange.v2.cfg

pack-priv final Class BasicMultiPropertiesConfig

extends MultiPropertiesConfig
Class Inheritance
Imports
java.util.*, java.io.*, com.mchange.v3.hocon.HoconPropertiesConfigSource

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class

Field Summary

Modifier and TypeField and Description
pack-priv static final BasicMultiPropertiesConfig
private static final String
private static final int
pack-priv List<E>
pack-priv Properties
pack-priv Map<K, V>
pack-priv Map<K, V>
pack-priv String[]

Constructor Summary

AccessConstructor and Description
public
pack-priv
BasicMultiPropertiesConfig(String[] resourcePaths, List<E> delayedLogItems)

public
BasicMultiPropertiesConfig(String notionalResourcePath, Properties props)

pack-priv
BasicMultiPropertiesConfig(String[] rps, Map<K, V> propsByResourcePaths, List<E> parseMessages)

private

Method Summary

Modifier and TypeMethod and Description
private static PropertiesConfigSource
configSource(String identifier)

public String
dump()

private static void
dumpToSysErr(List<E> delayedLogMessages)

private static String
private static Map<K, V>
extractPrefixMapFromRsrcPathMap(String[] resourcePaths, Map<K, V> pbrp, List<E> delayedLogItems)

private static Properties
extractPropsByKey(String[] resourcePaths, Map<K, V> pbrp, List<E> delayedLogItems)

private static Properties
findProps(String rp, Map<K, V> pbrp)

private void
finishInit(List<E> delayedLogItems)

rps, propsByResourcePaths, and parseMessages should be set before finishInit()

private void
firstInit(String[] resourcePaths, List<E> delayedLogItems)

public List<E>
public Properties
public Properties
public String[]
public String
pack-priv static boolean
isHoconPath(String identifier)

private static Map<K, V>
resourcePathToPropertiesMap(String notionalResourcePath, Properties props)

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from com.mchange.v2.cfg.MultiPropertiesConfig:
fromPropertiesfromPropertiesreadVmConfigreadVmConfig

Field Detail

EMPTYback to summary
pack-priv static final BasicMultiPropertiesConfig EMPTY
HOCON_CFG_CNAMEback to summary
private static final String HOCON_CFG_CNAME
HOCON_PFX_LENback to summary
private static final int HOCON_PFX_LEN
parseMessagesback to summary
pack-priv List<E> parseMessages
propsByKeyback to summary
pack-priv Properties propsByKey
propsByPrefixesback to summary
pack-priv Map<K, V> propsByPrefixes
propsByResourcePathsback to summary
pack-priv Map<K, V> propsByResourcePaths
rpsback to summary
pack-priv String[] rps

Constructor Detail

BasicMultiPropertiesConfigback to summary
public BasicMultiPropertiesConfig(String[] resourcePaths)
BasicMultiPropertiesConfigback to summary
pack-priv BasicMultiPropertiesConfig(String[] resourcePaths, List<E> delayedLogItems)
BasicMultiPropertiesConfigback to summary
public BasicMultiPropertiesConfig(String notionalResourcePath, Properties props)
BasicMultiPropertiesConfigback to summary
pack-priv BasicMultiPropertiesConfig(String[] rps, Map<K, V> propsByResourcePaths, List<E> parseMessages)
BasicMultiPropertiesConfigback to summary
private BasicMultiPropertiesConfig()

Method Detail

configSourceback to summary
private static PropertiesConfigSource configSource(String identifier) throws Exception
dumpback to summary
public String dump()
dumpToSysErrback to summary
private static void dumpToSysErr(List<E> delayedLogMessages)
extractPrefixback to summary
private static String extractPrefix(String s)
extractPrefixMapFromRsrcPathMapback to summary
private static Map<K, V> extractPrefixMapFromRsrcPathMap(String[] resourcePaths, Map<K, V> pbrp, List<E> delayedLogItems)
extractPropsByKeyback to summary
private static Properties extractPropsByKey(String[] resourcePaths, Map<K, V> pbrp, List<E> delayedLogItems)
findPropsback to summary
private static Properties findProps(String rp, Map<K, V> pbrp)
finishInitback to summary
private void finishInit(List<E> delayedLogItems)

rps, propsByResourcePaths, and parseMessages should be set before finishInit()

firstInitback to summary
private void firstInit(String[] resourcePaths, List<E> delayedLogItems)
getDelayedLogItemsback to summary
public List<E> getDelayedLogItems()

Implements abstract com.mchange.v2.cfg.MultiPropertiesConfig.getDelayedLogItems.

getPropertiesByPrefixback to summary
public Properties getPropertiesByPrefix(String pfx)

Implements abstract com.mchange.v2.cfg.MultiPropertiesConfig.getPropertiesByPrefix.

Implements com.mchange.v2.cfg.PropertiesConfig.getPropertiesByPrefix.

Doc from com.mchange.v2.cfg.MultiPropertiesConfig.getPropertiesByPrefix.

The special prefix "" returns all the Properties

getPropertiesByResourcePathback to summary
public Properties getPropertiesByResourcePath(String path)

Implements abstract com.mchange.v2.cfg.MultiPropertiesConfig.getPropertiesByResourcePath.

getPropertiesResourcePathsback to summary
public String[] getPropertiesResourcePaths()

Implements abstract com.mchange.v2.cfg.MultiPropertiesConfig.getPropertiesResourcePaths.

getPropertyback to summary
public String getProperty(String key)

Implements abstract com.mchange.v2.cfg.MultiPropertiesConfig.getProperty.

Implements com.mchange.v2.cfg.PropertiesConfig.getProperty.

isHoconPathback to summary
pack-priv static boolean isHoconPath(String identifier)
resourcePathToPropertiesMapback to summary
private static Map<K, V> resourcePathToPropertiesMap(String notionalResourcePath, Properties props)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

com.mchange.v2.cfg back to summary

pack-priv final Class BasicMultiPropertiesConfig.SystemPropertiesConfigSource

extends Object
implements PropertiesConfigSource
Class Inheritance
  • java.lang.Object
  • com.mchange.v2.cfg.BasicMultiPropertiesConfig.SystemPropertiesConfigSource
All Implemented Interfaces
com.mchange.v2.cfg.PropertiesConfigSource

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public PropertiesConfigSource.Parse
propertiesFromSource(String identifier)

Implements com.mchange.v2.cfg.PropertiesConfigSource.propertiesFromSource.

An Exception signifies this source cannot be parsed at all; it is a bad source.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

SystemPropertiesConfigSourceback to summary
pack-priv SystemPropertiesConfigSource()

Method Detail

propertiesFromSourceback to summary
public PropertiesConfigSource.Parse propertiesFromSource(String identifier) throws FileNotFoundException, Exception

Implements com.mchange.v2.cfg.PropertiesConfigSource.propertiesFromSource.

Doc from com.mchange.v2.cfg.PropertiesConfigSource.propertiesFromSource.

An Exception signifies this source cannot be parsed at all; it is a bad source. More local failures should be handled and reported in parse messages.