Hi,
Changing the method name to setSecurityContext made the injection attempt
possible.
However, even if removing final, the injector now reports (at runtime HTTP
call):
Apr 02, 2014 1:05:44 PM org.apache.cxf.jaxrs.utils.InjectionUtils
reportServerError
SEVERE: Method setSecurityContext can not be accessed due to security manager
restrictions
Current method signature:
@Context
public void setSecurityContext(SecurityContext context) {..}
Thank you,
Nicu Marasoiu
From: Nicolae Marasoiu
Sent: Wednesday, April 02, 2014 12:30 PM
To: '[email protected]'
Subject: trying to inject javax.ws.rs.core.SecurityContext in a setter-style
method
Hello,
I am trying to inject javax.ws.rs.core.SecurityContext in a setter-style
method, from the CXF controller (annotated with @Path) (to capture the context
and access it across layers):
@Context
public final void setContext(@Context javax.ws.rs.core.SecurityContext
context) {
}
It does not call the method at all!
Pls help,
Thanks
Nicu Marasoiu