org.infinispan.util
Class LegacyKeySupportTypedProperties
java.lang.Object
java.util.Dictionary<K,V>
java.util.Hashtable<Object,Object>
java.util.Properties
org.infinispan.util.TypedProperties
org.infinispan.util.LegacyKeySupportTypedProperties
- All Implemented Interfaces:
- Serializable, Cloneable, Map<Object,Object>
public class LegacyKeySupportTypedProperties
- extends TypedProperties
An extension of TypedProperties that has support for legacy keys. Construct this Properties type with mappings
of currently expected keys to their legacy, deprecated counterparts and you will simply have to look up the new,
updated keys and still be able to support the legacy keys, while logging a message that an old key was used.
- Version:
- 4.1
- Author:
- Manik Surtani
- See Also:
- Serialized Form
Methods inherited from class java.util.Properties |
list, list, load, load, loadFromXML, propertyNames, save, store, store, storeToXML, storeToXML, stringPropertyNames |
Methods inherited from class java.util.Hashtable |
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values |
LegacyKeySupportTypedProperties
public LegacyKeySupportTypedProperties(Properties p,
Map<String,String> legacyKeyMapping)
LegacyKeySupportTypedProperties
public LegacyKeySupportTypedProperties(Map<String,String> legacyKeyMapping)
getProperty
public String getProperty(String key)
- Overrides:
getProperty
in class Properties
getProperty
public String getProperty(String key,
String defaultValue)
- Overrides:
getProperty
in class Properties
getIntProperty
public int getIntProperty(String key,
int defaultValue)
- Overrides:
getIntProperty
in class TypedProperties
getLongProperty
public long getLongProperty(String key,
long defaultValue)
- Overrides:
getLongProperty
in class TypedProperties
getBooleanProperty
public boolean getBooleanProperty(String key,
boolean defaultValue)
- Overrides:
getBooleanProperty
in class TypedProperties
Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.