Class Toolbox

java.lang.Object
org.apache.velocity.tools.Toolbox
All Implemented Interfaces:
Serializable

public class Toolbox extends Object implements Serializable

Instances of this class are typically created by a ToolboxFactory on a one-per-scope basis. So, for each application, there would be one application-scoped Toolbox from which you would retrieve tool instances, and for each request, there would be one request-scoped Toolbox. Of course, none of the above is enforced. There's no reason that you can't manually create a Toolbox or have multiple Toolboxes for each scope.

When a Toolbox creates a tool instance asked of it (see get(java.lang.String)), it will cache that instance for future requests.

Version:
$Id: Toolbox.java 511959 2007-02-26 19:24:39Z nbubna $
Author:
Nathan Bubna
See Also: