com.vaadin.flow.server.frontend.fusion.

Class EndpointGeneratorTaskFactoryImpl

  • java.lang.Object
    • com.vaadin.flow.server.frontend.fusion.EndpointGeneratorTaskFactoryImpl
    • Constructor Detail

      • EndpointGeneratorTaskFactoryImpl

        public EndpointGeneratorTaskFactoryImpl()
    • Method Detail

      • createTaskGenerateConnect

        public TaskGenerateConnect createTaskGenerateConnect(File applicationProperties,
                                                             File openApi,
                                                             File outputFolder,
                                                             File frontendDirectory)

        Description copied from interface: EndpointGeneratorTaskFactory

        Create a task for generating TS files based.

        Specified by:

        createTaskGenerateConnect 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.