. Answers to this question are eligible for a +50 reputation bounty. Bl ...
. Answers to this question are eligible for a +50 reputation bounty. Bl ...
I use an embedded Jetty (11.0.13) server with Jersey (3.1.0) that provides a simple REST interface which returns JSON objects. The JSON objects are se ...
In general, not so long ago we encountered a problem, for some reason, all attempts to upload a file for a client fail. On the back we get an exceptio ...
I have a service, that uses hk2 Autoscan feature with help of hk2-inhabitant-generator plugin. It works with the classes I have in my source code. But ...
After upgrading jersey version abstract binder not working. I change factory to supplier, and AbstractBinder is imported from jersey internal. But the ...
I have an interface with a naive implementation, say I want to make a cache that caches the doIt, so I wrote a wrapper : Then, I add both implem ...
I am trying to use hk2 dependency injection in jersey application. I have a class named ClassA implements IClassA interface. I want to use dependency ...
My app has got quite a few of async (cron) processes and they all have their separate binder classes in Jersey. These processes are started and manage ...
I have a small JAX-RS (Jersey 3.0.1) API running in a standalone Jetty 11 but want to use Weld 4.0.0 instead of HK2. The Jetty bootstraps the Weld con ...
I'm interested in using HK2 or Guice for a dependency injection framework. I know of @Named, @Qualifier, and custom annotations etc. But these are all ...
We have a core Java application and different plugins for different clients. We are using Hk2 for dependency injection. I would like to now is it pos ...
I'm using HK2 Operations to manage a custom scope in a Java SE application which contains a REST server component. The REST part is provided by Jersey ...
I have one interface with generic I have two implement classes, for instance GenericInterfaceImpl and GenericInterfaceImplImpl, they both are using ...
For example, what if several resource endpoints need access to some message bus to handle requests? Surely there is some way to register a singleton s ...
There is a dropwizard app, which is jersey based. I rewrote Hk2 bean definitions into Guice and now I can inject Guice beans into Jersey Resources, bu ...
On base of the guide from this blog, Roll your own Auto Discovery with Jersey and HK2, I have the follow resource POJO: The TestService: The Tes ...
I would like to test my Jakarta application (Payara) with simply JUnit Test (without arquillian, without MicroShed). I use ServiceLocator from Hk2 t ...
I have a generic class that looks like this. I use it within a RestFull api powered by Jersey. I use it very often and I have to instanciate it lik ...
Spring boot, Jax-RS + Open Tracer In my gradle deps: The problem starts when I try to inject the Tracer: I tried several method to add the Tran ...
Using Dropwizard 1.3.17, we retrieve the ServiceLocator as such: ServiceLocator serviceLocator = ((ServletContainer) environment.getJerseyServletCont ...