Class ApiComponentGeneratorMojo

All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="fromApis", requiresDependencyResolution=COMPILE_PLUS_RUNTIME, requiresProject=true, defaultPhase=GENERATE_SOURCES, threadSafe=true) public class ApiComponentGeneratorMojo extends AbstractApiMethodBaseMojo
Generates Camel Component based on a collection of APIs.
  • Field Details

    • DEFAULT_EXCLUDE_PACKAGES

      protected static final String DEFAULT_EXCLUDE_PACKAGES
      See Also:
    • apis

      @Parameter(required=true) protected ApiProxy[] apis
      List of API names, proxies and code generation settings.
    • fromJavasource

      @Parameter protected FromJavasource fromJavasource
      Common Javasource code generation settings.
  • Constructor Details

    • ApiComponentGeneratorMojo

      public ApiComponentGeneratorMojo()
  • Method Details

    • executeInternal

      public void executeInternal() throws org.apache.maven.plugin.MojoExecutionException
      Description copied from class: AbstractGeneratorMojo
      Template Method which assumes AbstractGeneratorMojo.projectClassLoader is set.
      Specified by:
      executeInternal in class AbstractGeneratorMojo
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • getApiMethod

      public static String getApiMethod(String proxyClass, String classPrefix)
    • getEndpointConfig

      public static String getEndpointConfig(String proxyClass, String classPrefix)
    • getEnumConstant

      public static String getEnumConstant(String enumValue)
    • getNullableOptionValues

      public static String getNullableOptionValues(String[] nullableOptions)