Class OldToolInfo

  • All Implemented Interfaces:
    Serializable

    public class OldToolInfo
    extends ToolInfo
    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:
    Serialized Form
    • Constructor Detail

      • OldToolInfo

        public OldToolInfo​(String key,
                           Class clazz)
        Creates a new instance using the minimum required info necessary for a tool.
    • Method Detail

      • getInit

        protected Method getInit()
      • setClass

        public void setClass​(Class clazz)
        Description copied from class: ToolInfo
        Tries to create an instance of the specified Class, then looks for a configure(Map) method.
        Overrides:
        setClass in class ToolInfo
        Parameters:
        clazz - the java.lang.Class of the tool
      • configure

        protected void configure​(Object tool,
                                 Map<String,​Object> configuration)
        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 the SkipSetters annotation, then any specific setters matching the configuration keys are called, then the general configure(Map) method (if any) is called.
        Overrides:
        configure in class ToolInfo