Package com.vaadin.hilla
Class EndpointCodeGenerator
java.lang.Object
com.vaadin.hilla.EndpointCodeGenerator
Handles (re)generation of the TypeScript code.
-
Constructor Summary
ConstructorsConstructorDescriptionEndpointCodeGenerator(com.vaadin.flow.server.VaadinContext context, EndpointController endpointController) Creates the singleton. -
Method Summary
Modifier and TypeMethodDescriptionstatic EndpointCodeGeneratorGets the singleton instance.voidupdate()Re-generates the endpoint TypeScript and re-registers the endpoints in Java.
-
Constructor Details
-
EndpointCodeGenerator
public EndpointCodeGenerator(com.vaadin.flow.server.VaadinContext context, EndpointController endpointController) 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
-