NVelocity.Tool
Class ToolLoader

A view tool that allows template designers to load an arbitrary object into the context. Any object with a public constructor without parameters can be used as a view tool.THIS CLASS IS HERE AS A PROOF OF CONCEPT ONLY. IT IS NOT INTENDED FOR USE IN PRODUCTION ENVIRONMENTS. USE AT YOUR OWN RISK.

Constructor Summary
ToolLoader()
        Initializes a new instance of the ToolLoader class.

Method Summary
object Load(string clazz)
         Creates and returns an object of the specified classname. The object must have a valid default constructor.

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


Constructor Detail

ToolLoader

public ToolLoader()

Initializes a new instance of the ToolLoader class.

Method Detail

Load

public object Load(string clazz)

Creates and returns an object of the specified classname. The object must have a valid default constructor.

Parameters:
clazz - the fully qualified class name of the object
Returns:
an instance of the specified class or null if the class could not be instantiated.