public abstract class Tool
extends java.lang.Object
| Constructor and Description |
|---|
Tool() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
displayHelp()
Display Tool Help
|
protected abstract int |
execute()
Perform Tool Behaviour
|
protected void |
exit(int status)
Exit Tool
|
protected org.springframework.context.ApplicationContext |
getApplicationContext()
Get the Application Context
|
protected ServiceRegistry |
getServiceRegistry()
Get the Repository Service Registry
|
protected abstract java.lang.String |
getToolName()
Get the tool name
|
protected int |
handleError(java.lang.Throwable e)
Handle Error Message
|
protected void |
logError(java.lang.String msg)
Log Error message
|
protected void |
logInfo(java.lang.String msg)
Log message
|
protected void |
logVerbose(java.lang.String msg)
Log Verbose message
|
protected org.alfresco.tools.ToolContext |
processArgs(java.lang.String[] args)
Process Tool Arguments
|
void |
start(java.lang.String[] args)
Tool entry point
|
protected org.alfresco.tools.ToolContext processArgs(java.lang.String[] args)
throws org.alfresco.tools.ToolArgumentException
args - the argumentsToolExceptionorg.alfresco.tools.ToolArgumentExceptionprotected void displayHelp()
protected abstract int execute()
throws ToolException
ToolExceptionprotected abstract java.lang.String getToolName()
protected void logInfo(java.lang.String msg)
msg - message to logprotected void logVerbose(java.lang.String msg)
msg - message to logprotected void logError(java.lang.String msg)
msg - message to logprotected int handleError(java.lang.Throwable e)
e - exceptionprotected void exit(int status)
status - status codeprotected final org.springframework.context.ApplicationContext getApplicationContext()
protected final ServiceRegistry getServiceRegistry()
public final void start(java.lang.String[] args)
args - the tool argumentsCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.