On 22/05/12 21:30, ceineke wrote:
Sergey Beryozkin-5 wrote
Having Service bean implementing InjectableUriInfo in addition to the
service factory (which makes sure that no injection is attempted too
Sorry, could you clarify this? Does the service factory
(RequestScopedResourceFactory) need to implement the UriInfoInjectable
interface as well?
No, only the service class needs.
Re UriInfo still not injected into a mapper.
Mapper is not visible at all to the JAX-RS runtime, it's not even a sub
resource locator (which might get the context injection supported in the
future).
The best way to get a UriInfo ref injected into a Mapper instance is to
do mapper.setUriInfo(uriInfo) from within Service.setUriInfo method. I
believe that by the time Service.setUriInfo is called the Service
instance has been completely initialized by Spring
Sergey
- chris
--
View this message in context:
http://cxf.547215.n5.nabble.com/UriInfo-is-not-injected-tp5707988p5708309.html
Sent from the cxf-user mailing list archive at Nabble.com.
--
Sergey Beryozkin
Talend Community Coders
http://coders.talend.com/
Blog: http://sberyozkin.blogspot.com