Hi,

when looking at the current implementation of JAXRS resources in
enhancer/jersey, I see that the JerseyEndpoint class for instance uses

@Reference
EnhancementJobManager jobManager;

On the other hand we have JAXRS resources like EnginesRootResource
which don't use @Reference. Instead they use the ServletContext to get
references.

public EnginesRootResource(@Context ServletContext context) {
    tcManager = (TcManager) context.getAttribute(TcManager.class.getName());
}

What is the reason behind this construct? Wouldn't it be possible to
use @Reference in the JAXRS resource classes?

Best,
 - Fabian

Reply via email to