static MultiPropertiesConfig read(String[] resourcePath, List delayedLogItems) { return new BasicMultiPropertiesConfig( resourcePath, delayedLogItems ); }
/** * rps, propsByResourcePaths, and parseMessages should be set before finishInit() */ private void finishInit( List delayedLogItems ) { boolean syserr = false; if (delayedLogItems == null) { delayedLogItems = new ArrayList(); syserr = true; } this.propsByPrefixes = Collections.unmodifiableMap( extractPrefixMapFromRsrcPathMap(rps, propsByResourcePaths, delayedLogItems ) ); this.propsByKey = extractPropsByKey(rps, propsByResourcePaths, delayedLogItems ); if ( syserr ) dumpToSysErr( delayedLogItems ); }
public String toString() { return super.toString() + " " + this.dump(); } }
BasicMultiPropertiesConfig(String[] resourcePaths, List delayedLogItems) { firstInit( resourcePaths, delayedLogItems ); finishInit( delayedLogItems ); }
Properties p = findProps( rp, pbrp ); if (p == null) String prefix = extractPrefix( key ); while (prefix != null) prefix=extractPrefix( prefix );
this.propsByPrefixes = Collections.unmodifiableMap( extractPrefixMapFromRsrcPathMap(rps, propsByResourcePaths) ); this.propsByResourcePaths = Collections.unmodifiableMap( propsByResourcePaths ); this.propsByKey = extractPropsByKey(rps, propsByResourcePaths);
Properties p = findProps( rp, pbrp ); if (p == null)
PropertiesConfigSource cs = configSource( rp ); PropertiesConfigSource.Parse parse = cs.propertiesFromSource( rp ); pbrp.put( rp, parse.getProperties() ); dumpToSysErr( delayedLogItems );
BasicMultiPropertiesConfig(String[] rps, Map propsByResourcePaths, List parseMessages) { this.rps = rps; this.propsByResourcePaths = propsByResourcePaths; List dlis = new ArrayList(); dlis.addAll( parseMessages ); finishInit( dlis ); this.parseMessages = dlis; }
Properties p = findProps( rp, pbrp ); if (p == null) String prefix = extractPrefix( key ); while (prefix != null) prefix=extractPrefix( prefix );
this.propsByPrefixes = Collections.unmodifiableMap( extractPrefixMapFromRsrcPathMap(rps, propsByResourcePaths) ); this.propsByResourcePaths = Collections.unmodifiableMap( propsByResourcePaths ); this.propsByKey = extractPropsByKey(rps, propsByResourcePaths);
Properties p = findProps( rp, pbrp ); if (p == null)
Properties p = findProps( rp, pbrp ); if (p == null) String prefix = extractPrefix( key ); while (prefix != null) prefix=extractPrefix( prefix );
public static MultiPropertiesConfig fromProperties(String notionalResourcePath, Properties props) { return new BasicMultiPropertiesConfig( notionalResourcePath, props ); }
Properties p = findProps( rp, pbrp ); if (p == null)
public static MultiPropertiesConfig read(String[] resourcePath) { return new BasicMultiPropertiesConfig( resourcePath ); }
public static MultiPropertiesConfig read(String[] resourcePath) { return new BasicMultiPropertiesConfig( resourcePath ); }
public static MultiPropertiesConfig read(String[] resourcePath, MLogger logger) { return new BasicMultiPropertiesConfig( resourcePath, logger ); }
public static MultiPropertiesConfig read(String[] resourcePath, MLogger logger) { return new BasicMultiPropertiesConfig( resourcePath, logger ); }
public static MultiPropertiesConfig read(String[] resourcePath) { return new BasicMultiPropertiesConfig( resourcePath ); }