Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thank you for this effort! #3

Open
hrstoyanov opened this issue Mar 12, 2019 · 3 comments
Open

Thank you for this effort! #3

hrstoyanov opened this issue Mar 12, 2019 · 3 comments

Comments

@hrstoyanov
Copy link

@treblereel thanks for looking into this!

Not sure if you know, but Errai has full CDI implementation with all scopes. It is based on the old GWT linker/generator mechanism, but there is a branch with CDI implemented with apt done by @tiagobento, but was never merged. Also, keep in mind APT is no longer recommended, but Dagger2 is good enough.

Hope you can steal the code and make it work with J2CL as Errai seems abandoned.

It maybe asking too much, but another Errai piece worth salvaging is the JAX-RS implementation, especialy if it is aligned to Microprofile REST Client - they are very similar in design

@tiagobento
Copy link

Thanks for the mention, @hrstoyanov.

As you might know, Errai's migration from GWT generators to Java APT initiative was put on hold due to higher priority tasks that came up.

Not sure if I misunderstood your comment on APT, but as far as I know, the deprecation targeted only the implementation-specific classes under com.sun package related to Annotation Processing. As far as I can tell, anything under the javax namespace is still supported.

Anyways, @treblereel, if you're interested in the efforts we did, please reach out to me, it'll be a pleasure to chat about that.

@treblereel
Copy link
Member

@hrstoyanov Thanks a million for your interest, i am pretty familiar with Errai, i did some PRs to this amazing framework, i really love it, but, you know ... :(

@tiagobento yeap, i know about the work you did and as i heard, it ll never be merged, and it's very sad.
I will be happy to chat with you about your experience, but at this moment i am out of the office -- PTO is nice :)

Anyway, it's just a POC to check how it could be done with APT and J2CL

@hrstoyanov
Copy link
Author

@treblereel @tiagobento @mbarkley

... CDI aside, there are other Errai parts worth salvaging!

What can be done to save Errai - it really hurts to see it dying?

To me, Errai 5 needs:

  • Be allowed to break compatibility with Errai 4. Errai 4.x.y can continue to serve existing clients and be bound to GWT indefinitely.
  • Completely move Errai to Github, including issues management, discussions.
  • Completely switch to J2CL and Elemental only. Break things if you have to, take to opportunity to improve.
  • Reduce scope to only: CDI, Microprofile REST Client, WebSockets, Data binding, UI
  • Remove everything else - JPA, Security, RPC, messaging, HTTP polling...
  • Make standard Microprofile APIs/JAVA EE maven artifacts the only dependencies.
  • [Optional] Implement Spring CDI and REST interfaces.

Reducing the scope of Errai, making it smaller and more focused is key to success (compare to the reduced J2CL vs the bloated GWT)

treblereel added a commit that referenced this issue Oct 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants