| org.apache.velocity.tools.view.ToolInfo
All known Subclasses: org.apache.velocity.tools.view.DataInfo, org.apache.velocity.tools.view.ViewToolInfo,
ToolInfo | public interface ToolInfo (Code) | | Interface to simplify and abstract tool handling.
Implementations of this class should hold both the context
key for the tool and sufficient information to return
an instance of the tool.
author: Nathan Bubna version: $Id: ToolInfo.java 479724 2006-11-27 18:49:37Z nbubna $ |
getClassname | String getClassname()(Code) | | the fully qualified classname for the tool |
getInstance | Object getInstance(Object initData)(Code) | | Returns an instance of the tool.
Instances returned may be new on each call, pooled, or
the be same instance every time depending on the
implementation. The object passed to this method may
be used to initialize or create the tool that is returned,
or it may be null if no such data is required.
Parameters: initData - an object that may be used to initialize the instance an instance of the tool |
|
|