ToolInfo implementation that holds scope information for tools
used in a servlet environment. The ServletToolboxManager uses
this to allow tool definitions to specify the scope/lifecycle
of individual view tools.
Example of toolbox.xml definitions for servlet tools:
<tool>
<key>link</key>
<scope>request</scope>
<class>org.apache.velocity.tools.struts.StrutsLinkTool</class>
</tool>
<tool>
<key>math</key>
<scope>application</scope>
<class>org.apache.velocity.tools.generic.MathTool</class>
</tool>
<tool>
<key>user</key>
<scope>session</scope>
<class>com.mycompany.tools.MyUserTool</class>
</tool>
author: Nathan Bubna version: $Id: ServletToolInfo.java 479724 2006-11-27 18:49:37Z nbubna $ |