Class ExchangeModelProcessor

java.lang.Object
org.mule.maven.exchange.ExchangeModelProcessor
All Implemented Interfaces:
org.apache.maven.model.building.ModelProcessor, org.apache.maven.model.io.ModelReader, org.apache.maven.model.locator.ModelLocator

@Component(role=org.apache.maven.model.building.ModelProcessor.class) public class ExchangeModelProcessor extends Object implements org.apache.maven.model.building.ModelProcessor
  • Field Details

  • Constructor Details

    • ExchangeModelProcessor

      public ExchangeModelProcessor()
  • Method Details

    • setModelReader

      public void setModelReader(org.apache.maven.model.io.ModelReader modelReader)
    • setModelLocator

      public void setModelLocator(org.apache.maven.model.locator.ModelLocator modelLocator)
    • locatePom

      public File locatePom(File projectDirectory)
      Specified by:
      locatePom in interface org.apache.maven.model.locator.ModelLocator
    • read

      public org.apache.maven.model.Model read(File file, Map<String,?> map) throws IOException, org.apache.maven.model.io.ModelParseException
      Specified by:
      read in interface org.apache.maven.model.io.ModelReader
      Throws:
      IOException
      org.apache.maven.model.io.ModelParseException
    • read

      public org.apache.maven.model.Model read(InputStream inputStream, Map<String,?> map) throws IOException, org.apache.maven.model.io.ModelParseException
      Specified by:
      read in interface org.apache.maven.model.io.ModelReader
      Throws:
      IOException
      org.apache.maven.model.io.ModelParseException
    • read

      public org.apache.maven.model.Model read(Reader reader, Map<String,?> options) throws IOException, org.apache.maven.model.io.ModelParseException
      Specified by:
      read in interface org.apache.maven.model.io.ModelReader
      Throws:
      IOException
      org.apache.maven.model.io.ModelParseException
    • toPomXml

      public static String toPomXml(File exchangeJson) throws IOException
      Helper method used by studio by reflection do not change the signature.
      Parameters:
      exchangeJson -
      Returns:
      Throws:
      IOException
    • toXmlString

      public String toXmlString(org.apache.maven.model.Model mavenModel) throws IOException
      Throws:
      IOException