cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jordan <>
Subject Re: Configuration and Constructor Context Injection problem when using CXF
Date Thu, 21 Aug 2014 12:26:25 GMT
Hi Sergey,

Great thanks for your quickly response! :)

I see you opened two defects yesterday:

1. Application context injection:
2. Configuration injection

Sorry, I may not see any spec says "contexts can be injected into
Application". But I see that I can inject @Context resource into Singleton
Constructor in this link:

Example 3.25. Injection of proxies into singleton	

public static class MySingletonResource {
    Request request; // this is ok: the proxy of Request will be injected
into this singleton
    public MySingletonResource(@Context SecurityContext securityContext) {
        // this is ok too: the proxy of SecurityContext will be injected

If I use this Constructor for Singleton, I really don't know how to init it
in Application getSingletons() method, and how to pass any @Context to
getSingletons() in Application class (because any @Context injection in
Application is null)?. :)

I see you opened these two defects, can I think these are two confirmed
problems which will be fixed in future?

And btw, if yes, do you know when these will be fixed and which version will
include these fixes?

Thanks a lot for your help & good day! :)

View this message in context:
Sent from the cxf-dev mailing list archive at

View raw message