|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.tools.Tool
public abstract class Tool
Abstract Tool Implementation
Constructor Summary | |
---|---|
Tool()
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Tool()
Method Detail |
---|
protected org.alfresco.tools.ToolContext processArgs(java.lang.String[] args) throws org.alfresco.tools.ToolArgumentException
args
- the arguments
ToolException
org.alfresco.tools.ToolArgumentException
protected void displayHelp()
protected abstract int execute() throws ToolException
ToolException
protected 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 arguments
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |