14.1.1 The Endpoint Annotation
An Endpoint can be created by annotating a class with the Endpoint annotation, and supplying it with (at minimum) an endpoint id.
FooEndpoint.java
@Endpoint("foo")
class FooEndpoint {
...
}
If a single String
argument is supplied to the annotation, it will be used as the endpoint id.
It is possible to supply additional (named) arguments to the annotation. Other possible arguments to @Endpoint
are described in the table below:
Argument | Description | Endpoint Example |
---|---|---|
| The endpoint id (or name) |
|
| Prefix used for configuring the endpoint (see Endpoint Configuration) |
|
| Sets whether the endpoint is enabled when no configuration is set (see Endpoint Configuration) |
|
| Sets whether the endpoint is sensitive if no configuration is set (see Endpoint Configuration) |
|