A toolbox manager is responsible for automatically filling the Velocity context with a set of view tools. This class provides the following features:
Configuration
The toolbox manager is configured through an XML-based configuration file. The configuration file is passed to the {@link #load(java.io.InputStream input)}method. The format is shown in the following example:
<?xml version="1.0"?> <toolbox> <tool> <key>date</key> <class>org.apache.velocity.tools.generic.DateTool</class> </tool> <data type="Number"> <key>luckynumber</key> <value>1.37</value> </data> <data type="String"> <key>greeting</key> <value>Hello World!</value> </data> </toolbox>@author Nathan Bubna @author Geir Magnusson Jr. @author Henning P. Schmiedehausen @version $Id: XMLToolboxManager.java 542916 2007-05-30 19:36:22Z nbubna $ @deprecated Use {@link org.apache.velocity.tools.config.XmlFactoryConfiguration}
|
|
|
|