ToolInfo
@Deprecated public class ViewToolInfo extends Object implements ToolInfo
Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
LOG
Deprecated.
|
Constructor and Description |
---|
ViewToolInfo()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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 loadedClassNotFoundException
- 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 toolException
public void setParameters(Map parameters)
public void setParameter(String name, String value)
public String getKey()
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 instanceCopyright © 2002–2016 Apache Software Foundation. All rights reserved.