com.vaadin.fusion.generator.

Class ClientAPIGenerator


  • public class ClientAPIGenerator
    extends Object

    Generates the Vaadin connect-client file, based on the application properties, if provided.

    • Constructor Detail

      • ClientAPIGenerator

        public ClientAPIGenerator(Path outputDirectory,
                                  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

        outputDirectory - the directory to generate the default client into

    • Method Detail

      • generate

        public void generate()

        Generates the client file in the file specified.

      • getOutputFilePath

        public Path getOutputFilePath()

        Gets the path of the client API file.

        Returns:

        the client API file path.