Commit 3588629
committed
Quarkus integration via shared transport (ADR-0003 + ADR-0006)
Mounts Smithy operations on Quarkus's Vert.x HTTP server via a new
upstream :server:server-vertx-bridge module — no separate Smithy
listener. Replaces the experimental @produces Server shape with
@produces Service.
Upstream (smithy-java)
* server-vertx-bridge: SmithyServiceBridge.bridge(services).bind(router)
plus BoundBridge (unbind / shutdown) and BridgeOptions
(path-prefix, workers, shutdown-grace). Routes are derived per
operation; multi-protocol same-path requests (rpcv2-cbor +
rpcv2-json on /service/X/operation/Y) collapse into one route
that picks protocol by smithy-protocol header.
* ServerProtocol.enumerateRoutes() + RouteSpec record. restJson1
uses @http(method, uri); rpcv2 computes /service/<Name>/operation/<Op>
and skips services whose operations carry @http traits (avoids
phantom mounts).
* server-api package promoted out of @SmithyUnstableApi; bridge
consumers now see a stable surface.
* BasicServiceExample under examples/end-to-end demonstrating the
bridge against plain Vert.x (no Quarkus).
quarkus-smithy extension
* SmithyVertxRecorder + SmithyProcessor mount the bridge on
mainRouter at RUNTIME_INIT, register unbind/shutdown tasks, and
short-circuit silently when no @produces Service beans exist
(ADR-0006 OQ7).
* SmithyServerConfig (@ConfigMapping prefix=quarkus.smithy.server)
exposes path-prefix, workers, shutdown-grace.
* UnremovableBeanBuildItem retains user @produces Service beans.
examples/quarkus-server (canonical example)
* Standalone Gradle build (its own gradlew) that consumes
smithy-java only via mavenLocal — required because Quarkus
workspace discovery would otherwise substitute sibling raw
build/classes for json-codec's shaded jar and split the
classloader graph.
* Service-bean producer for CoffeeShop; full Dev & Test guide in
README (boot, curl probes, hot reload, path-prefix, packaged
jar, Dev UI, integration tests).
Cleanup
* Delete examples/quarkus-types and examples/quarkus-client. The
extension is server-only today; Typed-client and Types-only are
documented as future directions in README.md and CONTEXT.md but
no longer ship as supported user-facing programming models.
* Delete the experimental SmithyServerLifecycle observer
(@produces Server path).
* Drop the implementation-plan doc; ADR-0006 §Implementation is
now the canonical record.
* settings.gradle.kts no longer includes :examples:quarkus-{server,
client,types} (server is intentionally standalone).
Verification
* :server:server-vertx-bridge:test 16/16
* :quarkus-smithy-integration-tests:test green
* :aws:server:aws-server-restjson:integ + rpcv2 integ green
* Prod jar smoke (java -jar quarkus-run.jar): GET /menu 200,
PUT /order 200, GET /order/:id 200, GET /no-such 404 with
correct payloads
* Dev mode (quarkusDev): same four probes pass; hot reload works
via BoundBridge.unbind()1 parent 06a7e01 commit 3588629
57 files changed
Lines changed: 2960 additions & 1190 deletions
File tree
- aws/server/aws-server-restjson/src/main/java/software/amazon/smithy/java/aws/server/restjson
- examples
- end-to-end
- src/main/java/software/amazon/smithy/java/server/example
- quarkus-client
- src/main
- java/software/amazon/smithy/java/example/quarkus/client
- resources
- smithy
- quarkus-server
- gradle/wrapper
- src/main
- java/software/amazon/smithy/java/example/quarkus
- resources
- quarkus-types
- src/main
- java/software/amazon/smithy/java/example/quarkus/types
- resources
- smithy
- gradle
- quarkus-smithy-deployment
- src/main/java/software/amazon/smithy/java/quarkus/deployment
- quarkus-smithy
- src/main/java/software/amazon/smithy/java/quarkus/runtime
- server
- server-api/src/main/java/software/amazon/smithy/java/server
- server-core/src/main/java/software/amazon/smithy/java/server/core
- server-rpcv2/src/main/java/software/amazon/smithy/java/server/rpcv2
- server-vertx-bridge
- src
- main/java/software/amazon/smithy/java/server/vertx
- test/java/software/amazon/smithy/java/server/vertx
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 55 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| 51 | + | |
50 | 52 | | |
51 | 53 | | |
52 | 54 | | |
| 55 | + | |
53 | 56 | | |
54 | 57 | | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
55 | 65 | | |
56 | 66 | | |
57 | 67 | | |
| |||
66 | 76 | | |
67 | 77 | | |
68 | 78 | | |
| 79 | + | |
69 | 80 | | |
70 | 81 | | |
71 | 82 | | |
| |||
75 | 86 | | |
76 | 87 | | |
77 | 88 | | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
78 | 133 | | |
79 | 134 | | |
80 | 135 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
Lines changed: 47 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 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 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
0 commit comments