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:
IOException
-