org.apache.cxf.tools.common.toolspec
Class AbstractToolContainer
java.lang.Object
org.apache.cxf.tools.common.toolspec.AbstractToolContainer
- All Implemented Interfaces:
- ToolContainer
- Direct Known Subclasses:
- AbstractCXFToolContainer
public abstract class AbstractToolContainer
- extends Object
- implements ToolContainer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
toolspec
protected ToolSpec toolspec
context
protected ToolContext context
out
protected PrintStream out
err
protected PrintStream err
AbstractToolContainer
public AbstractToolContainer()
AbstractToolContainer
public AbstractToolContainer(ToolSpec ts)
throws BadUsageException
- Throws:
BadUsageException
setArguments
public void setArguments(String[] args)
- Specified by:
setArguments
in interface ToolContainer
parseCommandLine
public void parseCommandLine()
throws BadUsageException
- Throws:
BadUsageException
setMode
public void setMode(String[] args)
init
public void init()
throws ToolException
- Throws:
ToolException
getCommandDocument
public CommandDocument getCommandDocument()
getCommandLineParser
public CommandLineParser getCommandLineParser()
redirectOutput
public void redirectOutput()
isQuietMode
public boolean isQuietMode()
isVerboseMode
public boolean isVerboseMode()
getArgument
public String[] getArgument()
getOutOutputStream
public OutputStream getOutOutputStream()
setOutOutputStream
public void setOutOutputStream(OutputStream outOutputStream)
- Specified by:
setOutOutputStream
in interface ToolContainer
getErrOutputStream
public OutputStream getErrOutputStream()
setErrOutputStream
public void setErrOutputStream(OutputStream errOutputStream)
- Specified by:
setErrOutputStream
in interface ToolContainer
setContext
public void setContext(ToolContext c)
- Specified by:
setContext
in interface ToolContainer
getContext
public ToolContext getContext()
execute
public void execute(boolean exitOnFinish)
throws ToolException
- Specified by:
execute
in interface ToolContainer
- Throws:
ToolException
tearDown
public void tearDown()
getBus
public Bus getBus()
getCatalogURL
protected String getCatalogURL()
Apache CXF