org.ops4j.pax.runner
Class AuditedProperties

java.lang.Object
  extended by java.util.Dictionary<K,V>
      extended by java.util.Hashtable<java.lang.Object,java.lang.Object>
          extended by java.util.Properties
              extended by org.ops4j.pax.runner.AuditedProperties
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.Object,java.lang.Object>

public class AuditedProperties
extends java.util.Properties

Java Properties that audits changes of properties from the moment that was created.

Since:
0.5.0
Author:
Alin Dreghiciu
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.Properties
defaults
 
Constructor Summary
AuditedProperties(java.util.Properties defaults)
          Creates an empty property list with the specified defaults.
 
Method Summary
 java.lang.String getProperty(java.lang.String key)
          Delegate to defaults if not found.
 java.lang.String getProperty(java.lang.String key, java.lang.String defaultValue)
          Delegate to defaults if not found.
 java.lang.Object setProperty(java.lang.String key, java.lang.String value)
           
 
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
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AuditedProperties

public AuditedProperties(java.util.Properties defaults)
Creates an empty property list with the specified defaults.

Parameters:
defaults - the defaults.
Method Detail

getProperty

public java.lang.String getProperty(java.lang.String key)
Delegate to defaults if not found.

Overrides:
getProperty in class java.util.Properties
See Also:
Properties.getProperty(String)

getProperty

public java.lang.String getProperty(java.lang.String key,
                                    java.lang.String defaultValue)
Delegate to defaults if not found.

Overrides:
getProperty in class java.util.Properties
See Also:
Properties.getProperty(String,String)

setProperty

public java.lang.Object setProperty(java.lang.String key,
                                    java.lang.String value)
Overrides:
setProperty in class java.util.Properties


Copyright © 2006-2011 OPS4J - Open Participation Software for Java. All Rights Reserved.