You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Whenever a Jersey resource class is annotated with @singleton (guice annotation) hk2 doesnot honour it as it searches java's @singleton annotation. This is solved by using java's Singleton annotation but without a proper warning or documentation provided this issue might go unsolved.
In my case this resulted in in-memory caches being intialised for every request as hk2 doesnot honour Guice annotation.
Atleast a fair warning in javadocs or github documentation might help the developer.
The text was updated successfully, but these errors were encountered:
Whenever a Jersey resource class is annotated with @singleton (guice annotation) hk2 doesnot honour it as it searches java's @singleton annotation. This is solved by using java's Singleton annotation but without a proper warning or documentation provided this issue might go unsolved.
In my case this resulted in in-memory caches being intialised for every request as hk2 doesnot honour Guice annotation.
Atleast a fair warning in javadocs or github documentation might help the developer.
The text was updated successfully, but these errors were encountered: