Package org.apache.cxf.tools.common
Class AbstractCXFToolContainer
- java.lang.Object
-
- org.apache.cxf.tools.common.toolspec.AbstractToolContainer
-
- org.apache.cxf.tools.common.AbstractCXFToolContainer
-
- All Implemented Interfaces:
ToolContainer
public abstract class AbstractCXFToolContainer extends AbstractToolContainer
Common processing for the CXF tools. Processes common options.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.cxf.tools.common.toolspec.AbstractToolContainer
AbstractToolContainer.GenericOutputStream
-
-
Constructor Summary
Constructors Constructor Description AbstractCXFToolContainer(String nm, ToolSpec toolspec)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckParams(ErrorVisitor err)Check command-line parameters for validity.protected ClassCollectorcreateClassCollector()voidexecute(boolean exitOnFinish)protected String[]getDefaultExcludedNamespaces(String excludeProps)StringgetFileBase(String wsdlUrl)StringgetFileName(String loc)protected Map<String,Object>getParametersMap(Set<String> stringArrayKeys)get all parameters in a mapStringgetToolName()StringgetUsage()booleanhasInfoOption()booleanisVerboseOn()PropertiesloadProperties(InputStream inputs)PropertiesloadProperties(String propertyFile)voidoutputFullCommandLine()voidoutputVersion()voidprintUsageException(String toolName, BadUsageException ex)-
Methods inherited from class org.apache.cxf.tools.common.toolspec.AbstractToolContainer
getArgument, getBus, getCatalogURL, getCommandDocument, getCommandLineParser, getContext, getErrOutputStream, getOutOutputStream, init, isQuietMode, isVerboseMode, parseCommandLine, redirectOutput, setArguments, setContext, setErrOutputStream, setMode, setOutOutputStream, tearDown
-
-
-
-
Field Detail
-
LOG
protected static final Logger LOG
-
-
Method Detail
-
hasInfoOption
public boolean hasInfoOption() throws ToolException- Throws:
ToolException
-
execute
public void execute(boolean exitOnFinish) throws ToolException- Specified by:
executein interfaceToolContainer- Overrides:
executein classAbstractToolContainer- Throws:
ToolException
-
checkParams
public void checkParams(ErrorVisitor err) throws ToolException
Check command-line parameters for validity. Since subclasses delegate down to here, this cannot complain about unwanted options.- Parameters:
err- place to report errors.- Throws:
ToolException- for impossible options.
-
isVerboseOn
public boolean isVerboseOn()
-
getToolName
public String getToolName()
-
getUsage
public String getUsage()
-
outputVersion
public void outputVersion()
-
outputFullCommandLine
public void outputFullCommandLine()
-
printUsageException
public void printUsageException(String toolName, BadUsageException ex)
-
loadProperties
public Properties loadProperties(InputStream inputs)
-
loadProperties
public Properties loadProperties(String propertyFile)
-
getParametersMap
protected Map<String,Object> getParametersMap(Set<String> stringArrayKeys)
get all parameters in a map- Parameters:
stringArrayKeys- contains keys, whose value should be string array
-
createClassCollector
protected ClassCollector createClassCollector()
-
-