com.vaadin.fusion.frontend.
Class EndpointGeneratorTaskFactoryImpl
- java.lang.Object
-
- com.vaadin.fusion.frontend.EndpointGeneratorTaskFactoryImpl
-
All Implemented Interfaces:
public class EndpointGeneratorTaskFactoryImpl extends Object implements EndpointGeneratorTaskFactory
An implementation of the EndpointGeneratorTaskFactory, which creates endpoint generator tasks.
-
-
Constructor Summary
Constructors Constructor and Description EndpointGeneratorTaskFactoryImpl()
-
Method Summary
All Methods Modifier and Type Method and Description TaskGenerateFusion
createTaskGenerateFusion(File applicationProperties, File openApi, File outputFolder, File frontendDirectory)
Create a task for generating TS files based.
TaskGenerateOpenAPI
createTaskGenerateOpenAPI(File properties, File javaSourceFolder, ClassLoader classLoader, File output)
Create a task for generating OpenAPI spec.
-
-
-
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 interfaceEndpointGeneratorTaskFactory
Parameters:
applicationProperties
- application properties file.openApi
- openApi json file. notnull
outputFolder
- the output folder. notnull
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 interfaceEndpointGeneratorTaskFactory
Parameters:
properties
- application properties file.javaSourceFolder
- source paths of the project containing Vaadin Endpoint. notnull
classLoader
- The class loader which should be used to resolved types in the source paths. notnull
output
- the output path of the generated json file. notnull
Returns:
an endpoint task that generates open api json file.
-
-