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.hilla.
Package com.vaadin.hilla
Class EndpointCodeGenerator
java.lang.Object
com.vaadin.hilla.EndpointCodeGenerator
Handles (re)generation of the TypeScript code.
-
Constructor Summary
ConstructorsConstructorDescriptionEndpointCodeGenerator
(VaadinContext context, EndpointController endpointController) Creates the singleton.
-
Method Summary
Modifier and TypeMethodDescriptionstatic EndpointCodeGenerator
Gets the singleton instance.
void
update()
Re-generates the endpoint TypeScript and re-registers the endpoints in Java.
-
Constructor Details
-
EndpointCodeGenerator
Creates the singleton.
Parameters:
context
- the context the application is running inendpointController
- a reference to the endpoint controller
-
-
Method Details
-
getInstance
Gets the singleton instance.
-
update
Re-generates the endpoint TypeScript and re-registers the endpoints in Java.
Throws:
IOException
- if something went wrong -
getClassesUsedInOpenApi
Throws:
-