Package org.apache.velocity.tools.view
Interface ToolInfo
- All Known Implementing Classes:
DataInfo
,ServletToolInfo
,ViewToolInfo
Deprecated.
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.
- Version:
- $Id: ToolInfo.java 534692 2007-05-03 02:18:39Z nbubna $
- Author:
- Nathan Bubna
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.getInstance
(Object initData) Deprecated.Returns an instance of the tool.getKey()
Deprecated.
-
Method Details
-
getKey
String getKey()Deprecated.- Returns:
- the context key for the tool
-
getClassname
String getClassname()Deprecated.- Returns:
- the fully qualified classname for the tool
-
getInstance
Deprecated.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- Returns:
- an instance of the tool
-
ToolInfo