Package dev.hilla
Annotation Type Endpoint
-
@Target(TYPE) @Retention(RUNTIME) @Component public @interface Endpoint
Annotation to mark the endpoints to be processed byEndpointControllerclass. Each class annotated automatically becomes a SpringComponentbean. After the class is annotated and processed, it becomes available as a Vaadin endpoint. This means that the class name and all its public methods can be executed via the post call with the correct parameters sent in a request JSON body. The methods' return values will be returned back as a response to the calls. Refer toEndpointControllerfor more details.- See Also:
EndpointController,Component
-
-
Element Detail
-
value
String value
The name of an endpoint to use. If nothing is specified, the name of the annotated class is taken.Note: custom names are not allowed to be blank, be equal to any of the ECMAScript reserved words or have whitespaces in them. See
EndpointNameCheckerfor validation implementation details.- Returns:
- the name of the endpoint to use in post requests
- Default:
- ""
-
-