question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Javalin 3.0 wishlist/discussion

See original GitHub issue

This issue is for suggesting breaking changes.

I have one main thing on the list for Javalin 3, which is making it easier to create a JavalinServlet for use outside of Jetty. This means creating a separation between the server and the servlet (currently everything is lumped together in the Javalin class). It would be nice if this could support static files and file uploads.

This might make the initial setup slightly harder for the people who use Javalin with jetty (99%?), so we have to be very careful.

JavalinServlet could be released as a separate dependency, javalin-servlet, which javalin depends on.

Should also consider:

  • Rewrite to Java (sadly, Kotlin interop isn’t as good as we thought)
  • Interfaces for testing
  • Reconsider plugin architecture. Currently they’re singletons (JavalinJson, JavalinRenderer). Maybe they should be put on the app.
  • Remove case-insensitive path matching ?
  • Do something about config? (ref #508)
  • Do something about WsSession (also vs Context?)
  • ~Rework casting and validation~ (DONE)
  • Javalin logger to easily disable built in logging (in case people are building a framework on top?)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:7
  • Comments:28 (14 by maintainers)

github_iconTop GitHub Comments

4reactions
wyatt-herkampcommented, Feb 8, 2019

Rewrite to Java (sadly, Kotlin interop isn't as good as we thought) I know. Kotlin + Java causes issues when wanting Javadocs or documentation overall. So that will be nice.

2reactions
ghostcommented, Jan 25, 2019
  1. Moving to Netty is 180 degrees shift in what Javalin always was, at least for me, so -1 here. (Asynchronous processing)
  2. I’d vote against moving to Jetty 10 simply because of Java 11 requirement. There are still places where Javalin could be used, but its not possible to migrate from Java 8 since it brings effort and AdoptOpenJdk Azul IBM Amazon and others are still providing support for Java 8 and they will continue to do so for couple more years.
  3. rewriting to Java can be an advertisement move, Kotlin users won’t even notice if we have a good wind, Java users who have their project’s requirements written in stone and vendor locked on Java might pick it up
Read more comments on GitHub >

github_iconTop Results From Across the Web

Javalin 3.0 wishlist/discussion · Issue #459 - GitHub
This means creating a separation between the server and the servlet (currently everything is lumped together in the Javalin class). It would be ......
Read more >
Archive - v3 documentation - Javalin - A lightweight Java and ...
Javalin - A lightweight Java and Kotlin web framework. Create REST APIs in Java or Kotlin easily.
Read more >
Javalin (Javalin 3.0.0 API) - javadoc.io
Creates a new instance without any custom configuration. static Javalin · create(java.util.function.Consumer<JavalinConfig> config). Creates a new ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found