Class GenerateEndpointUriFactoryMojo

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

    @Mojo(name="generate-endpoint-uri-factory",
          threadSafe=true,
          defaultPhase=PROCESS_CLASSES,
          requiresDependencyCollection=COMPILE,
          requiresDependencyResolution=COMPILE)
    public class GenerateEndpointUriFactoryMojo
    extends AbstractGeneratorMojo
    Abstract class for endpoint uri factory generator.
    • Field Detail

      • buildDir

        @Parameter(defaultValue="${project.build.directory}")
        protected File buildDir
        The project build directory
      • sourcesOutputDir

        @Parameter(defaultValue="${project.basedir}/src/generated/java")
        protected File sourcesOutputDir
      • resourcesOutputDir

        @Parameter(defaultValue="${project.basedir}/src/generated/resources")
        protected File resourcesOutputDir
    • Constructor Detail

      • GenerateEndpointUriFactoryMojo

        public GenerateEndpointUriFactoryMojo()
    • Method Detail

      • execute

        public void execute()
                     throws org.apache.maven.plugin.MojoExecutionException,
                            org.apache.maven.plugin.MojoFailureException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
        org.apache.maven.plugin.MojoFailureException
      • createEndpointUriFactory

        protected void createEndpointUriFactory​(org.apache.camel.tooling.model.ComponentModel model)
                                         throws IOException
        Throws:
        IOException
      • loadJson

        protected static String loadJson​(File file)
      • findComponentNames

        protected void findComponentNames​(File dir,
                                          Set<String> componentNames)