com.vaadin.fusion.generator.

Class OpenAPISpecGenerator


  • public class OpenAPISpecGenerator
    extends Object

    A generator class that creates the OpenAPI specification file from the sources provided.

    See Also:

    OpenAPI specification

    • Constructor Detail

      • OpenAPISpecGenerator

        public OpenAPISpecGenerator(Properties applicationProperties)

        Creates the generator, getting the data needed for the generation out of the application properties.

        Parameters:

        applicationProperties - the properties with the data required for the generation

    • Method Detail

      • generateOpenApiSpec

        public void generateOpenApiSpec(Collection<Path> sourcesPaths,
                                        Path specOutputFile)

        Generates the OpenAPI spec file based on the sources provided.

        Parameters:

        sourcesPaths - the source root to be analyzed

        specOutputFile - the target file to write the generation output to

      • generateOpenApiSpec

        public void generateOpenApiSpec(Collection<Path> sourcesPaths,
                                        ClassLoader classLoader,
                                        Path specOutputFile)

        Generates the OpenAPI spec file based on the sources provided.

        Parameters:

        sourcesPaths - the source root to be analyzed

        classLoader - the ClassLoader which is able to load the classes in sourcesPaths

        specOutputFile - the target file to write the generation output to