类 OldToolInfo

java.lang.Object
org.apache.velocity.tools.ToolInfo
org.apache.velocity.tools.OldToolInfo
所有已实现的接口:
Serializable

public class OldToolInfo extends ToolInfo
Manages old tools which still use the deprecated init() method.
版本:
$Id: OldToolInfo.java 511959 2007-02-26 19:24:39Z nbubna $
作者:
Nathan Bubna
另请参阅:
  • 字段详细资料

    • serialVersionUID

      private static final long serialVersionUID
      另请参阅:
    • INIT_METHOD_NAME

      public static final String INIT_METHOD_NAME
      另请参阅:
    • init

      private transient Method init
  • 构造器详细资料

    • OldToolInfo

      public OldToolInfo(String key, Class clazz)
      Creates a new instance using the minimum required info necessary for a tool.
  • 方法详细资料

    • getInit

      protected Method getInit()
    • setClass

      public void setClass(Class clazz)
      从类复制的说明: ToolInfo
      Tries to create an instance of the specified Class, then looks for a configure(Map<String,Object>) method.
      覆盖:
      setClass 在类中 ToolInfo
      参数:
      clazz - the java.lang.Class of the tool
    • configure

      protected void configure(Object tool, Map<String,Object> configuration)
      从类复制的说明: ToolInfo
      Actually performs configuration of the newly instantiated tool using the combined final set of configuration properties. First, if the class lacks the SkipSetters annotation, then any specific setters matching the configuration keys are called, then the general configure(Map) method (if any) is called.
      覆盖:
      configure 在类中 ToolInfo