v3.3.1 makes the normal application entry point smaller without hiding handlers, resources, or
runtime behavior. Existing annotations, handlers, services, and builder-based startup remain
source-compatible.
- Added
RestApplication.run(Module...)for the minimal explicit lifecycle. - Added
RestApplication.runStandard(Module...)for the property-controlled production feature lifecycle. - Added async launcher counterparts for embedded tests and controlled process startup.
- Updated the sample application to select a named module in one line.
- Registered the nested feature sample records for generated DSL-JSON serialization.
- Kept resource ownership deterministic:
context.manage(...)resources close in reverse order on startup failure and shutdown.
public static void main(String[] args) {
RestApplication.run(OrdersModule.INSTANCE);
}Keep handler and resource wiring in OrdersModule. Use RestApplication.builder() only for custom
ports, custom containers, or non-standard lifecycle integration.
<dependency>
<groupId>com.reactor</groupId>
<artifactId>rust-java-rest</artifactId>
<version>3.3.1</version>
</dependency>- Existing REST annotations and response types are unchanged.
- Existing builder startup remains available.
- Native ABI remains REST
23, Dubbo5, and Redis5; packaged DLL/SO files are unchanged.