/** * Set a property, this will replace any previously * set values. Set values is implicitly a call * to clearProperty(key), addProperty(key,value). * * @param key the key to set * @param value the value to set */ public void setProperty(String key, Object value) { clearProperty(key); addProperty(key, value); }
/** * Set a property, this will replace any previously * set values. Set values is implicitly a call * to clearProperty(key), addProperty(key,value). * * @param key the key to set * @param value the value to set */ public void setProperty(String key, Object value) { clearProperty(key); addProperty(key, value); }
if (properties.containsKey(key)) { log.warn("Removed reserved property: {} = {}", key, properties.get(key)); properties.clearProperty(key);
if (properties.containsKey(key)) { log.warn("Removed reserved property: {} = {}", key, properties.get(key)); properties.clearProperty(key);
/** * Clear the values pertaining to a particular * property. * * @param key of property to clear */ public void clearProperty(String key) { if (overridingProperties != null) { overridingProperties.clearProperty(key); } }
/** * Clear the values pertaining to a particular * property. * * @param key of property to clear */ public void clearProperty(String key) { if (overridingProperties != null) { overridingProperties.clearProperty(key); } }
/** * Clear the values pertaining to a particular * property. * * @param key of property to clear */ public void clearProperty(String key) { if (overridingProperties != null) { overridingProperties.clearProperty(key); } }
/** * Clear the values pertaining to a particular * property. * * @param String key of property to clear */ public void clearProperty(String key) { if (overridingProperties != null) { overridingProperties.clearProperty(key); } }
/** * Set a property, this will replace any previously * set values. Set values is implicitly a call * to clearProperty(key), addProperty(key,value). * * @param key the key to set * @param value the value to set */ public void setProperty(String key, Object value) { clearProperty(key); addProperty(key, value); }
/** * Set a property, this will replace any previously * set values. Set values is implicitly a call * to clearProperty(key), addProperty(key,value). * * @param key the key to set * @param value the value to set */ public void setProperty(String key, Object value) { clearProperty(key); addProperty(key, value); }
/** * Set a property, this will replace any previously * set values. Set values is implicitly a call * to clearProperty(key), addProperty(key,value). * * @param key the key to set * @param value the value to set */ public void setProperty(String key, Object value) { clearProperty(key); addProperty(key, value); }
/** * Set a property, this will replace any previously * set values. Set values is implicitly a call * to clearProperty(key), addProperty(key,value). * * @param key the key to set * @param value the value to set */ public void setProperty(String key, Object value) { clearProperty(key); addProperty(key, value); }
/** * Set a property, this will replace any previously * set values. Set values is implicitly a call * to clearProperty(key), addProperty(key,value). * * @param key the key to set * @param value the value to set */ public void setProperty(String key, Object value) { clearProperty(key); addProperty(key, value); }
/** * Clear a property in the configuration. * * @param String key to remove along with corresponding value. */ public void clearProperty(String key) { // $$$ GMJ : remove after 1.1 release // for deprecation help deprecationCrutch.clearProperty( key ); if (containsKey(key)) { /* * we also need to rebuild the keysAsListed or else * things get *very* confusing */ for(int i = 0; i < keysAsListed.size(); i++) { if ( ( (String) keysAsListed.get(i)).equals( key ) ) { keysAsListed.remove(i); break; } } remove(key); } }
public class WebAppFileResourceLoader extends FileResourceLoader { private Logger log= LoggerFactory.getLogger(WebAppFileResourceLoader.class); @Override public void init(ExtendedProperties configuration) { String webAppRootPath= (String) this.rsvc.getApplicationAttribute(WEB_APP_ROOT); if (webAppRootPath!=null) { Vector<String> pathsVector = configuration.getVector("path"); Vector<String> tempVector = new Vector<String>(pathsVector.size()); for (String path : pathsVector) { log.debug("path:{}", path); tempVector.add(webAppRootPath + File.separator + path); } configuration.clearProperty("path"); for (String path : tempVector) { configuration.addProperty("path", path); } } super.init(configuration); }
if (properties.containsKey(key)) { log.warn("Removed reserved property: {} = {}", key, properties.get(key)); properties.clearProperty(key);