public abstract class ToolHandlerHelper extends Object implements ToolHandler
Basic class for the tool handler interface.
Modifier and Type | Field and Description |
---|---|
static String |
ARG_EXTRA_JAR |
static int |
EXIT_KO_DEFAULT |
protected static org.slf4j.Logger |
logger |
EXIT_OK
Constructor and Description |
---|
ToolHandlerHelper() |
Modifier and Type | Method and Description |
---|---|
protected ClassLoader |
getClassLoader(Properties params) |
String |
getHelp()
Generate the heklp for current Tool
|
int |
handle(Properties params)
Does the operation of this handler.
|
abstract int |
handleWorker(Properties params)
Handler worker method.
|
protected static final org.slf4j.Logger logger
public static final String ARG_EXTRA_JAR
public static final int EXIT_KO_DEFAULT
public abstract int handleWorker(Properties params) throws Exception
Handler worker method.
params
- ths params for the toolException
- issues if problems arisepublic int handle(Properties params) throws Exception
ToolHandler
Does the operation of this handler.
handle
in interface ToolHandler
params
- the paramsException
- if issues arisesprotected ClassLoader getClassLoader(Properties params) throws Exception
Exception
public String getHelp()
Copyright © 2023 Fugerit. All rights reserved.