Package org.apache.velocity.tools
Class OldToolInfo
java.lang.Object
org.apache.velocity.tools.ToolInfo
org.apache.velocity.tools.OldToolInfo
- All Implemented Interfaces:
Serializable
Manages old tools which still use the deprecated init() method.
- Version:
- $Id: OldToolInfo.java 511959 2007-02-26 19:24:39Z nbubna $
- Author:
- Nathan Bubna
- See Also:
-
Field Summary
FieldsFields inherited from class org.apache.velocity.tools.ToolInfo
CONFIGURE_METHOD_NAME
-
Constructor Summary
ConstructorsConstructorDescriptionOldToolInfo
(String key, Class clazz) Creates a new instance using the minimum required info necessary for a tool. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Actually performs configuration of the newly instantiated tool using the combined final set of configuration properties.protected Method
getInit()
void
Tries to create an instance of the specified Class, then looks for a configure(Map<String,Object>) method.Methods inherited from class org.apache.velocity.tools.ToolInfo
addProperties, combine, create, getClassname, getConfigure, getKey, getProperties, getProps, getToolClass, hasConfigure, hasPermission, invoke, isSkipSetters, newInstance, putProperty, restrictTo, setKey, setProperty, setSkipSetters
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
INIT_METHOD_NAME
- See Also:
-
init
-
-
Constructor Details
-
OldToolInfo
Creates a new instance using the minimum required info necessary for a tool.
-
-
Method Details
-
getInit
-
setClass
Description copied from class:ToolInfo
Tries to create an instance of the specified Class, then looks for a configure(Map<String,Object>) method. -
configure
Description copied from class:ToolInfo
Actually performs configuration of the newly instantiated tool using the combined final set of configuration properties. First, if the class lacks theSkipSetters
annotation, then any specific setters matching the configuration keys are called, then the general configure(Map) method (if any) is called.
-