|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.velocity.tools.view.ViewToolInfo
ToolInfo
@Deprecated public class ViewToolInfo
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.
Field Summary | |
---|---|
protected static org.apache.commons.logging.Log |
LOG
Deprecated. |
Constructor Summary | |
---|---|
ViewToolInfo()
Deprecated. |
Method Summary | |
---|---|
protected Class |
getApplicationClass(String name)
Deprecated. Return the Class object for the specified fully qualified
class name, from this web application's class loader. |
String |
getClassname()
Deprecated. |
Object |
getInstance(Object initData)
Deprecated. Returns a new instance of the tool. |
String |
getKey()
Deprecated. Accessors |
Map |
getParameters()
Deprecated. Get parameters for this tool. |
void |
setClassname(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(String key)
Deprecated. Mutators |
void |
setParameter(String name,
String value)
Deprecated. Set/add new parameter for this tool. |
void |
setParameters(Map parameters)
Deprecated. Set parameter map for this tool. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final org.apache.commons.logging.Log LOG
Constructor Detail |
---|
public ViewToolInfo()
Method Detail |
---|
protected Class getApplicationClass(String name) throws 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 loaded
ClassNotFoundException
- if the class cannot be foundpublic void setKey(String key)
public void setClassname(String classname) throws Exception
classname
- the fully qualified java.lang.Class name of the tool
Exception
public void setParameters(Map parameters)
public void setParameter(String name, String value)
public String getKey()
getKey
in interface ToolInfo
public String getClassname()
getClassname
in interface ToolInfo
public Map getParameters()
public Object getInstance(Object initData)
getInstance
in interface ToolInfo
initData
- an object that may be used to initialize the instance
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |