We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.fusion.generator.
Class ClientAPIGenerator
- java.lang.Object
-
- com.vaadin.fusion.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 and Description static String
CONNECT_CLIENT_IMPORT_PATH
static String
CONNECT_CLIENT_NAME
static String
CUSTOM_CONNECT_CLIENT_NAME
-
Constructor Summary
Constructors Constructor and 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 Modifier and Type Method and Description void
generate()
Generates the client file in the file specified.
Path
getOutputFilePath()
Gets the path of the client API file.
-
-
-
Field Detail
-
CONNECT_CLIENT_IMPORT_PATH
public static final String CONNECT_CLIENT_IMPORT_PATH
See Also:
-
CONNECT_CLIENT_NAME
public static final String CONNECT_CLIENT_NAME
See Also:
-
CUSTOM_CONNECT_CLIENT_NAME
public static final String CUSTOM_CONNECT_CLIENT_NAME
See Also:
-
-
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.
-
-