From 4da759f146a97b8b1b47bb78c9e219aad1e82899 Mon Sep 17 00:00:00 2001 From: Steve Loughran Date: Thu, 24 Nov 2005 16:13:10 +0000 Subject: [PATCH] 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. git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@348764 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/tools/ant/PropertyHelper.java | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/src/main/org/apache/tools/ant/PropertyHelper.java b/src/main/org/apache/tools/ant/PropertyHelper.java index 2d0f8bd5c..5e9faac98 100644 --- a/src/main/org/apache/tools/ant/PropertyHelper.java +++ b/src/main/org/apache/tools/ant/PropertyHelper.java @@ -74,6 +74,9 @@ public class PropertyHelper { protected PropertyHelper() { } + //override facility for subclasses to put custom hashtables in + + // -------------------- Hook management -------------------- /** @@ -481,6 +484,36 @@ public class PropertyHelper { 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 * command line or a GUI tool from this instance to the Project