Re:Javalin – a simple web framework for Java and Kotlin
by breakpete on Sunday February 11, 2024 @01:47PM
(#39337393)
Regarding 2, you can actually bind routes to instance methods:
Edit: For 4, Javalin 6 also has some documentation regarding Servlets here: https://javalin.io/documentation#adding-other-servlets-and-f...
[ Parent
| on HN ]
Re:Javalin – a simple web framework for Java and Kotlin
by derefr on Sunday February 11, 2024 @01:52PM
(#39337443)
Strange — I swear this wasn't the case. I and several other devs tried for a good three weeks to get Javalin to accept such route bindings. This was a year or two ago, though. Maybe the interface type for a handler function was changed in some more recent version of Javalin?
Re:Javalin – a simple web framework for Java and Kotlin
by breakpete on Sunday February 11, 2024 @01:58PM
(#39337484)
Not sure about the older versions of Javalin, but from my experience with v5+ it just uses regular Single Abstract Method conversion for the Handler interface, which has a single method with just one parameter (the Context).