Class ToolHandlerHelper

java.lang.Object
org.fugerit.java.tool.ToolHandlerHelper
All Implemented Interfaces:
ToolHandler
Direct Known Subclasses:
CharsetCorrect, ExportQuery, ExtractFixedConfigHandler, FixedToExcel, LoggerTest, SendMail

public abstract class ToolHandlerHelper extends Object implements ToolHandler

Basic class for the tool handler interface.

Author:
Fugerit
  • Field Details

  • Constructor Details

    • ToolHandlerHelper

      public ToolHandlerHelper()
  • Method Details

    • handleWorker

      public abstract int handleWorker(Properties params) throws RunToolException

      Handler worker method.

      Parameters:
      params - ths params for the tool
      Returns:
      exit code (0 is all ok)
      Throws:
      RunToolException - issues if problems arise
    • handle

      public int handle(Properties params)
      Description copied from interface: ToolHandler

      Does the operation of this handler.

      Specified by:
      handle in interface ToolHandler
      Parameters:
      params - the params
      Returns:
      the result code of the operation
    • getClassLoader

      protected ClassLoader getClassLoader(Properties params)
    • getHelp

      public String getHelp()
      Generate the heklp for current Tool
      Returns:
      Help text