Package dev.hilla.generator
Class ClientAPIGenerator
- java.lang.Object
-
- dev.hilla.generator.ClientAPIGenerator
-
public class ClientAPIGenerator extends Object
Generates the Vaadin connect-client file, based on the application properties, if provided.
-
-
Field Summary
Fields Modifier and Type Field Description static StringCONNECT_CLIENT_IMPORT_PATHstatic StringCONNECT_CLIENT_NAMEstatic StringCUSTOM_CONNECT_CLIENT_NAME
-
Constructor Summary
Constructors Constructor Description ClientAPIGenerator(Path outputDirectory, Properties applicationProperties)Creates the generator, getting the data needed for the generation out of the application properties.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidgenerate()Generates the client file in the file specified.PathgetOutputFilePath()Gets the path of the client API file.
-
-
-
Field Detail
-
CONNECT_CLIENT_IMPORT_PATH
public static final String CONNECT_CLIENT_IMPORT_PATH
- See Also:
- Constant Field Values
-
CONNECT_CLIENT_NAME
public static final String CONNECT_CLIENT_NAME
- See Also:
- Constant Field Values
-
CUSTOM_CONNECT_CLIENT_NAME
public static final String CUSTOM_CONNECT_CLIENT_NAME
- See Also:
- Constant Field Values
-
-
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 generationoutputDirectory- 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.
-
-