com.vaadin.fusion.frontend.

Class EndpointGeneratorTaskFactoryImpl

    • Constructor Detail

      • EndpointGeneratorTaskFactoryImpl

        public EndpointGeneratorTaskFactoryImpl()
    • Method Detail

      • createTaskGenerateFusion

        public TaskGenerateFusion createTaskGenerateFusion(File applicationProperties,
                                                           File openApi,
                                                           File outputFolder,
                                                           File frontendDirectory)

        Description copied from interface: EndpointGeneratorTaskFactory

        Create a task for generating TS files based.

        Specified by:

        createTaskGenerateFusion in interface EndpointGeneratorTaskFactory

        Parameters:

        applicationProperties - application properties file.

        openApi - openApi json file. not null

        outputFolder - the output folder. not null

        frontendDirectory - the frontend folder.

        Returns:

        an endpoint tasks for generating TypeScript files for endpoints.

      • createTaskGenerateOpenAPI

        public TaskGenerateOpenAPI createTaskGenerateOpenAPI(File properties,
                                                             File javaSourceFolder,
                                                             ClassLoader classLoader,
                                                             File output)

        Description copied from interface: EndpointGeneratorTaskFactory

        Create a task for generating OpenAPI spec.

        Specified by:

        createTaskGenerateOpenAPI in interface EndpointGeneratorTaskFactory

        Parameters:

        properties - application properties file.

        javaSourceFolder - source paths of the project containing Vaadin Endpoint. not null

        classLoader - The class loader which should be used to resolved types in the source paths. not null

        output - the output path of the generated json file. not null

        Returns:

        an endpoint task that generates open api json file.