Java library for developing reactive programming (webflux) backend systems in microservices.
A modern, full-featured Java platform built from the ground up with a Spring/Netty/Jetty backend. The library is designed to be self-sufficient, simple, lightweight, and provide high-end performance. The platform includes several libraries, trace log processing, oauth2 server, keyloak, minio, high-performance asynchronous base rest and soap client (implemented from reactor-core), to application servers and big data solutions.
- HTTP
- Inject
- Codegen
- Eventloop
class Main extends HttpServerLauncher {
@Provides
AsyncServlet servlet() {
return request -> HttpResponse.ok200()
.withPlainText("Hello world");
}
public static void main(String[] args) throws Exception {
Launcher launcher = new HttpHelloWorldExample();
launcher.launch(args);
}
}
class Main extends Launcher {
@Inject
String message;
@Provides
String message() {
return "Hello world";
}
@Override
protected void run() {
System.out.println(message);
}
public static void main(String[] args) throws Exception {
Launcher launcher = new Main();
launcher.launch(args);
}
}
class Main {
public static void main(String[] args) throws ReflectiveOperationException {
Class<Example> example = ClassBuilder.create(DefiningClassLoader.create(), Example.class)
.withMethod("sayHello",
call(staticField(System.class, "out"), "println", value("Hello world")))
.build();
Example instance = example.getDeclaredConstructor().newInstance();
instance.sayHello();
}
public interface Example {
void sayHello();
}
}
class Main {
public static void main(String[] args) {
Eventloop eventloop = Eventloop.create();
eventloop.post(() -> System.out.println("Hello world"));
eventloop.run();
}
}