-
-
Notifications
You must be signed in to change notification settings - Fork 199
Expand file tree
/
Copy pathmodule-info.java
More file actions
44 lines (43 loc) · 1.22 KB
/
module-info.java
File metadata and controls
44 lines (43 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/**
* Global Tier 1 Dispatcher for JSON-RPC 2.0 requests.
*
* <p>This dispatcher acts as the central entry point for all JSON-RPC traffic. It manages the
* lifecycle of a request by:
*
* <ul>
* <li>Parsing the incoming body into a {@link io.jooby.jsonrpc.JsonRpcRequest} (supporting both
* single and batch shapes).
* <li>Iterating through registered {@link io.jooby.jsonrpc.JsonRpcService} instances to find a
* matching namespace.
* <li>Handling <strong>Notifications</strong> (requests without an {@code id}) by suppressing
* responses.
* <li>Unifying batch results into a single JSON array or a single object response as per the
* spec.
* </ul>
*
* <p>*
*
* <p>Usage:
*
* <pre>{@code
* install(new Jackson3Module());
*
* install(new JsonRpcJackson3Module());
*
* install(new JsonRpcModule(new MyServiceRpc_()));
* }</pre>
*
* @author edgar
* @since 4.0.17
*/
module io.jooby.jsonrpc {
exports io.jooby.jsonrpc;
exports io.jooby.annotation.jsonrpc;
requires io.jooby;
requires static org.jspecify;
requires typesafe.config;
requires org.slf4j;
requires static io.jooby.opentelemetry;
requires static io.opentelemetry.api;
requires static io.opentelemetry.context;
}