org.apache.velocity.tools.view
ToolInfo
@Deprecated public class ViewToolInfo extends java.lang.Object implements ToolInfo
Modifier and Type | Field and Description |
---|---|
private java.lang.Class |
clazz
Deprecated.
|
private java.lang.reflect.Method |
configure
Deprecated.
|
private java.lang.reflect.Method |
init
Deprecated.
|
private java.lang.String |
key
Deprecated.
|
protected static Log |
LOG
Deprecated.
|
private java.util.Map |
parameters
Deprecated.
|
Constructor and Description |
---|
ViewToolInfo()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.Class |
getApplicationClass(java.lang.String name)
Deprecated.
Return the
Class object for the specified fully qualified
class name, from this web application's class loader. |
java.lang.String |
getClassname()
Deprecated.
|
java.lang.Object |
getInstance(java.lang.Object initData)
Deprecated.
Returns a new instance of the tool.
|
java.lang.String |
getKey()
Deprecated.
Accessors
|
java.util.Map |
getParameters()
Deprecated.
Get parameters for this tool.
|
void |
setClassname(java.lang.String classname)
Deprecated.
If an instance of the tool cannot be created from
the classname passed to this method, it will throw an exception.
|
void |
setKey(java.lang.String key)
Deprecated.
Mutators
|
void |
setParameter(java.lang.String name,
java.lang.String value)
Deprecated.
Set/add new parameter for this tool.
|
void |
setParameters(java.util.Map parameters)
Deprecated.
Set parameter map for this tool.
|
protected static final Log LOG
private java.lang.String key
private java.lang.Class clazz
private java.util.Map parameters
private java.lang.reflect.Method init
private java.lang.reflect.Method configure
protected java.lang.Class getApplicationClass(java.lang.String name) throws java.lang.ClassNotFoundException
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.name
- Fully qualified class name to be loadedjava.lang.ClassNotFoundException
- if the class cannot be foundpublic void setKey(java.lang.String key)
public void setClassname(java.lang.String classname) throws java.lang.Exception
classname
- the fully qualified java.lang.Class name of the tooljava.lang.Exception
public void setParameters(java.util.Map parameters)
public void setParameter(java.lang.String name, java.lang.String value)
public java.lang.String getKey()
public java.lang.String getClassname()
getClassname
in interface ToolInfo
public java.util.Map getParameters()
public java.lang.Object getInstance(java.lang.Object initData)
getInstance
in interface ToolInfo
initData
- an object that may be used to initialize the instanceCopyright (c) 2003-2007 Apache Software Foundation