@Deprecated public class DeprecationAwareExtProperties extends Hashtable<String,Object>
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
logger
Deprecated.
Logger used to log the use of deprecated properties names.
|
Constructor and Description |
---|
DeprecationAwareExtProperties()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
containsKey(String key)
Deprecated.
Property getter which checks deprecated property keys
|
Object |
get(String key)
Deprecated.
Property getter which checks deprecated property keys
|
Object |
put(String key,
Object value)
Deprecated.
Property setter which checks deprecated property keys
|
protected String |
translateKey(String key)
Deprecated.
Translate if needed a deprecated key into its replacement key, and emit a warning for deprecated keys
|
protected void |
warnDeprecated(String oldName,
String newName)
Deprecated.
Emit a warning in the log for adeprecated property name
|
clear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keys, keySet, merge, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, size, toString, values
protected static org.slf4j.Logger logger
Logger used to log the use of deprecated properties names.
Since at the time Velocity properties are set Velocity is not yet initialized,
this logger namespace can only be a child of the default logger name: org.apache.velocity.deprecation
.
It won't honor the runtime.log.instance
or runtime.log.name
settings.
protected void warnDeprecated(String oldName, String newName)
oldName
- old property namenewName
- new property nameprotected String translateKey(String key)
key
- provided keypublic Object get(String key)
key
- provided keypublic Object put(String key, Object value)
public boolean containsKey(String key)
key
- provided keyCopyright © 2000–2019 The Apache Software Foundation. All rights reserved.