Revision: 486
          http://svn.sourceforge.net/stripes/?rev=486&view=rev
Author:   tfenne
Date:     2007-03-06 05:53:33 -0800 (Tue, 06 Mar 2007)

Log Message:
-----------
Changed the parameters map member variable to be private, and provided a public 
getter method to access it.

Modified Paths:
--------------
    trunk/stripes/src/net/sourceforge/stripes/action/OnwardResolution.java

Modified: trunk/stripes/src/net/sourceforge/stripes/action/OnwardResolution.java
===================================================================
--- trunk/stripes/src/net/sourceforge/stripes/action/OnwardResolution.java      
2007-03-06 05:29:44 UTC (rev 485)
+++ trunk/stripes/src/net/sourceforge/stripes/action/OnwardResolution.java      
2007-03-06 13:53:33 UTC (rev 486)
@@ -34,8 +34,8 @@
  * @author Tim Fennell
  */
 public abstract class OnwardResolution<T extends OnwardResolution<T>> {
-    protected String path;
-    protected Map<String,Object> parameters = new HashMap<String,Object>();
+    private String path;
+    private Map<String,Object> parameters = new HashMap<String,Object>();
 
     /**
      * Default constructor that takes the supplied path and stores it for use.
@@ -133,6 +133,18 @@
     }
 
     /**
+     * <p>Provides access to the Map of parameters that has been accumulated 
so far
+     * for this resolution. The reference returned is to the internal 
parameters
+     * map! As such any changed made to the Map will be reflected in the 
Resolution,
+     * and any subsequent calls to addParameter(s) will be reflected in the 
Map.</p>
+     *
+     * @return the Map of parameters for the resolution
+     */
+    public Map<String, Object> getParameters() {
+        return parameters;
+    }
+
+    /**
      * Constructs the URL for the resolution by taking the path and appending 
any parameters
      * supplied.
      */


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to