| java.lang.Object org.apache.velocity.tools.view.ViewToolInfo
All known Subclasses: org.apache.velocity.tools.view.servlet.ServletToolInfo,
ViewToolInfo | public class ViewToolInfo implements ToolInfo(Code) | | ToolInfo implementation for view tools. New instances
are returned for every call to getInstance(obj), and tools
that have an init(Object) method are initialized with the
given object before being returned. And tools that have a
configure(Map) method will be configured before being returned
if there are parameters specified for the tool.
author: Nathan Bubna author: Henning P. Schmiedehausen version: $Id: ViewToolInfo.java 479724 2006-11-27 18:49:37Z nbubna $ |
Field Summary | |
final protected static Log | LOG |
LOG | final protected static Log LOG(Code) | | |
ViewToolInfo | public ViewToolInfo()(Code) | | |
getApplicationClass | protected Class getApplicationClass(String name) throws ClassNotFoundException(Code) | | Return the Class object for the specified fully qualified
class name, from this web application's class loader. If no
class loader is set for the current thread, then the class loader
that loaded this class will be used.
Parameters: name - Fully qualified class name to be loaded Class object exception: ClassNotFoundException - if the class cannot be found since: VelocityTools 1.1 |
getInstance | public Object getInstance(Object initData)(Code) | | Returns a new instance of the tool. If the tool
has an init(Object) method, the new instance
will be initialized using the given data. If parameters
have been specified and the tool has a configure(Map)
method, the tool will be passed the parameters also.
|
getKey | public String getKey()(Code) | | Accessors ************************
|
getParameters | public Map getParameters()(Code) | | Get parameters for this tool.
since: VelocityTools 1.1 |
setClassname | public void setClassname(String classname) throws Exception(Code) | | If an instance of the tool cannot be created from
the classname passed to this method, it will throw an exception.
Parameters: classname - the fully qualified java.lang.Class name of the tool |
setKey | public void setKey(String key)(Code) | | Mutators ************************
|
setParameter | public void setParameter(String name, String value)(Code) | | Set/add new parameter for this tool.
since: VelocityTools 1.1 |
setParameters | public void setParameters(Map parameters)(Code) | | Set parameter map for this tool.
since: VelocityTools 1.1 |
|
|