cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thorsten Hoeger (JIRA)" <>
Subject [jira] [Commented] (CXF-5212) Context Injection with Spring AOP
Date Mon, 19 Aug 2013 16:18:48 GMT


Thorsten Hoeger commented on CXF-5212:


I wrote a simple Spring application reproducing the error.

In this setup "this.context" is null on invocation of class TestAPI (http://localhost:8080/api/foo)

If you uncomment the implements definition it works.
> Context Injection with Spring AOP
> ---------------------------------
>                 Key: CXF-5212
>                 URL:
>             Project: CXF
>          Issue Type: Improvement
>          Components: JAX-RS
>    Affects Versions: 2.7.6
>            Reporter: Thorsten Hoeger
>            Priority: Minor
>              Labels: frontend
>         Attachments: 0001-adding-deepscan-of-superclass.patch
> When using Spring AOP @Context injection using fields is not working. I found some threads
suggesting the use of interfaces which is working. Now I wanted to add the interface to my
superclass to avoid implementing it in every REST class. The "findContextSetterMethods" doesn't
check superclasses. I attached a possible patch but I am not sure about side effects.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message