Package org.fugerit.java.tool
Class ToolHandlerHelper
java.lang.Object
org.fugerit.java.tool.ToolHandlerHelper
- All Implemented Interfaces:
ToolHandler
- Direct Known Subclasses:
CharsetCorrect,ExportQuery,ExtractFixedConfigHandler,FixedToExcel,LoggerTest,SendMail
Basic class for the tool handler interface.
- Author:
- Fugerit
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final intprotected static final Stringprotected static final org.slf4j.LoggerFields inherited from interface org.fugerit.java.tool.ToolHandler
EXIT_OK -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ClassLoadergetClassLoader(Properties params) getHelp()Generate the heklp for current Toolinthandle(Properties params) Does the operation of this handler.abstract inthandleWorker(Properties params) Handler worker method.
-
Field Details
-
logger
protected static final org.slf4j.Logger logger -
LOG_PARAM_LITERAL
- See Also:
-
ARG_EXTRA_JAR
- See Also:
-
EXIT_KO_DEFAULT
public static final int EXIT_KO_DEFAULT- See Also:
-
-
Constructor Details
-
ToolHandlerHelper
public ToolHandlerHelper()
-
-
Method Details
-
handleWorker
Handler worker method.
- Parameters:
params- ths params for the tool- Returns:
- exit code (0 is all ok)
- Throws:
RunToolException- issues if problems arise
-
handle
Description copied from interface:ToolHandlerDoes the operation of this handler.
- Specified by:
handlein interfaceToolHandler- Parameters:
params- the params- Returns:
- the result code of the operation
-
getClassLoader
-
getHelp
Generate the heklp for current Tool- Returns:
- Help text
-