-
Notifications
You must be signed in to change notification settings - Fork 4
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
Make PrettyTime objects @Dependent #6
Comments
I'm not quite sure that
|
I can understand that keeping it as a Singleton and leave it up to the user to decide if its state works for them or not is okay, but how do we go with different locales x |
That's a good point. We don't ;-). We would need a proper Qute integration, e.g. a namespace resolver that can access the locale attribute of a |
One workaround is having the application produce their own named How do you suggest we go from here? |
At the moment I am leaning towards leaving the injected @gsmet any thoughts? |
Added note to README |
Also created ocpsoft/prettytime#211 asking PrettyTime to be immutable |
I don't know. I hate to say this but I don't really see the point of this extension given this thing is not immutable and apparently it doesn't need anything to work in native mode. |
@gsmet this is absolutely not true, we need this snippet for the extension to work in native mode: See the changes in quarkusio/status.quarkus.io#31 |
Also as I explained in the README, it's fine to not be immutable if the use case is to have a |
I think that it's OK if we document that the shared |
Because
PrettyTime
objects are mutable, it doesn't make sense to have it as a Singleton, since it may bring concurrency issues when the object state is changed in separate threadsThe text was updated successfully, but these errors were encountered: