Author: stevel
Date: Thu Nov 24 08:13:10 2005
New Revision: 348764

URL: http://svn.apache.org/viewcvs?rev=348764&view=rev
Log:
bug# 31972

PropertyHelper data members should be protected, not private

-added protected accessors to the live data, so that we have more of a choke 
point on their use/abuse.

Modified:
    ant/core/trunk/src/main/org/apache/tools/ant/PropertyHelper.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/PropertyHelper.java
URL: 
http://svn.apache.org/viewcvs/ant/core/trunk/src/main/org/apache/tools/ant/PropertyHelper.java?rev=348764&r1=348763&r2=348764&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/PropertyHelper.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/PropertyHelper.java Thu Nov 24 
08:13:10 2005
@@ -74,6 +74,9 @@
     protected PropertyHelper() {
     }
 
+    //override facility for subclasses to put custom hashtables in
+
+
     // --------------------  Hook management  --------------------
 
     /**
@@ -480,6 +483,36 @@
     public Hashtable getUserProperties() {
         return new Hashtable(userProperties);
     }
+
+    /**
+     * special back door for subclasses, internal access to
+     * the hashtables
+     * @return the live hashtable of all properties
+     */
+    protected Hashtable getInternalProperties() {
+        return properties;
+    }
+
+    /**
+     * special back door for subclasses, internal access to
+     * the hashtables
+     *
+     * @return the live hashtable of user properties
+     */
+    protected Hashtable getInternalUserProperties() {
+        return userProperties;
+    }
+
+    /**
+     * special back door for subclasses, internal access to
+     * the hashtables
+     *
+     * @return the live hashtable inherited properties
+     */
+    protected Hashtable getInternalInheritedProperties() {
+        return inheritedProperties;
+    }
+
 
     /**
      * Copies all user properties that have not been set on the



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to