You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by nb...@apache.org on 2004/11/11 05:03:38 UTC
cvs commit: jakarta-velocity-tools/src/java/org/apache/velocity/tools/view ToolboxManager.java
nbubna 2004/11/10 20:03:38
Modified: src/java/org/apache/velocity/tools/view ToolboxManager.java
Log:
deprecate getToolboxContext in favor of new and simpler getToolbox
Revision Changes Path
1.4 +13 -11 jakarta-velocity-tools/src/java/org/apache/velocity/tools/view/ToolboxManager.java
Index: ToolboxManager.java
===================================================================
RCS file: /home/cvs/jakarta-velocity-tools/src/java/org/apache/velocity/tools/view/ToolboxManager.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- ToolboxManager.java 18 Feb 2004 20:08:29 -0000 1.3
+++ ToolboxManager.java 11 Nov 2004 04:03:38 -0000 1.4
@@ -14,26 +14,22 @@
* limitations under the License.
*/
-
package org.apache.velocity.tools.view;
-
+import java.util.Map;
import org.apache.velocity.tools.view.context.ToolboxContext;
-
/**
* Common interface for toolbox manager implementations.
*
* @author <a href="mailto:nathan@esha.com">Nathan Bubna</a>
* @author <a href="mailto:geirm@apache.org">Geir Magnusson Jr.</a>
* @author <a href="mailto:sidler@teamup.com">Gabe Sidler</a>
- *
* @version $Id$
*/
public interface ToolboxManager
{
-
/**
* Adds a tool to be managed
*/
@@ -41,14 +37,20 @@
/**
- * Creates a {@link ToolboxContext} from the tools and data
- * in this manager. Tools that implement the ViewTool
- * interface should be initialized using the given initData.
+ * @deprecated Use getToolbox(Object initData)
+ */
+ ToolboxContext getToolboxContext(Object initData);
+
+
+ /**
+ * Retrieves a map of the tools and data being managed. Tools
+ * that implement the ViewTool interface will be (re)initialized
+ * using the specified initData.
*
* @param initData data used to initialize ViewTools
* @return the created ToolboxContext
+ * @since VelocityTools 1.2
*/
- ToolboxContext getToolboxContext(Object initData);
-
+ Map getToolbox(Object initData);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-dev-help@jakarta.apache.org