Hi,
In my application I need access to IntakeTool's Group Map from my action
classes. The method getGroups is currently protected, which means I could
write a subclass of IntakeTool to make this method public, but I can't see
any good reason for not making public in IntakeTool itself.
Attached is a patch to change this method's access modifier from protected to
public.
Regards,
-- Rodney
Index: ./src/java/org/apache/turbine/services/intake/IntakeTool.java
===================================================================
RCS file: /home/cvspublic/jakarta-turbine-2/src/java/org/apache/turbine/services/intake/IntakeTool.java,v
retrieving revision 1.6
diff -u -r1.6 IntakeTool.java
--- ./src/java/org/apache/turbine/services/intake/IntakeTool.java 14 Aug 2002 16:46:35 -0000 1.6
+++ ./src/java/org/apache/turbine/services/intake/IntakeTool.java 12 Nov 2002 05:57:15 -0000
@@ -363,11 +363,11 @@
}
/**
- * Give derived classes access to the Group Map
+ * Get a Map containing all the groups.
*
* @return the Group Map
*/
- protected Map getGroups()
+ public Map getGroups()
{
return groups;
}
--
To unsubscribe, e-mail: <mailto:turbine-dev-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:turbine-dev-help@;jakarta.apache.org>