NVelocity.Http.Tool
Class ViewToolInfo

ToolInfo implementation for view tools. New instances are returned for every call to getInstance(obj), and tools that implement (@link ViewTool} are initialized with the given object before being returned.

Constructor Summary
ViewToolInfo(string key, string classname)
         Constructor. If an instance of the tool cannot be created from the classname, it will throw an exception.

Property Summary
string Classname
string Key

Method Summary
object getInstance(object initData)
         Returns a new instance of the tool. If the tool implements {@link ViewTool}, the new instance will be initialized using the given data.

Methods inherited from class System.Object
Equals, Finalize, GetHashCode, GetType, MemberwiseClone, ToString


Constructor Detail

ViewToolInfo

public ViewToolInfo(string key,
                    string classname)

Constructor. If an instance of the tool cannot be created from the classname, it will throw an exception.

Parameters:
key - the context key for the tool
classname - the fully qualified java.lang.Class of the tool
Property Detail

Classname

public string Classname


Key

public string Key

Method Detail

getInstance

public object getInstance(object initData)

Returns a new instance of the tool. If the tool implements {@link ViewTool}, the new instance will be initialized using the given data.