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.
  • Field Details

    • LOG

      protected static final Logger LOG
  • Constructor Details

  • Method Details

    • hasInfoOption

      public boolean hasInfoOption() throws ToolException
      Throws:
      ToolException
    • execute

      public void execute(boolean exitOnFinish) throws ToolException
      Specified by:
      execute in interface ToolContainer
      Overrides:
      execute in class AbstractToolContainer
      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()
    • getFileBase

      public String getFileBase(String wsdlUrl)
    • printUsageException

      public void printUsageException(String toolName, BadUsageException ex)
    • getFileName

      public String getFileName(String loc)
    • loadProperties

      public Properties loadProperties(InputStream inputs)
    • loadProperties

      public Properties loadProperties(String propertyFile)
    • getDefaultExcludedNamespaces

      protected String[] getDefaultExcludedNamespaces(String excludeProps)
    • 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()