Uploaded image for project: 'Spring Web Services'
  1. Spring Web Services
  2. SWS-273

AbstractAnnotationMethodEndpointMapping doesn't support proxied bean dependencies

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5 M1
    • Fix Version/s: 1.5.3
    • Component/s: Core
    • Labels:
      None

      Description

      I use PayloadRootAnnotationMethodEndpointMapping with a security interceptor which depends on auto proxied beans.

      Since the post processor instance is created, the interceptor dependencies are resolved and so they will not be available for post processing.

      The AbstractEndpointMapping is application context aware so it can delay resolving until needed. The simplest solution I see is to be able to set the interceptor names.

        Activity

        dl_dan Dan Luputan created issue -
        arjen.poutsma Arjen Poutsma made changes -
        Field Original Value New Value
        Fix Version/s 1.5.3 [ 10982 ]
        arjen.poutsma Arjen Poutsma made changes -
        Summary Make AbstractEndpointMapping accept interceptor names AbstractAnnotationMethodEndpointMapping doesn't support proxied bean dependencies
        Hide
        arjen.poutsma Arjen Poutsma added a comment -

        This is due to the fact that AbstractAnnotationMethodEndpointMapping (and subclasses, such as PayloadRootAnnotationMethodEndpointMapping), implement BeastPostProcessor. Therefore, a circular state is reached, which results in the procies not working.

        I've reimplemented the AAMEM, so that it no longer implements BPP, but works differently. Things should work now.

        Show
        arjen.poutsma Arjen Poutsma added a comment - This is due to the fact that AbstractAnnotationMethodEndpointMapping (and subclasses, such as PayloadRootAnnotationMethodEndpointMapping), implement BeastPostProcessor. Therefore, a circular state is reached, which results in the procies not working. I've reimplemented the AAMEM, so that it no longer implements BPP, but works differently. Things should work now.
        arjen.poutsma Arjen Poutsma made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        arjen.poutsma Arjen Poutsma made changes -
        Component/s Security [ 10211 ]
        Component/s XML [ 10200 ]
        Component/s Core [ 10150 ]
        Hide
        arjen.poutsma Arjen Poutsma added a comment -

        Closing issues in 1.5.3

        Show
        arjen.poutsma Arjen Poutsma added a comment - Closing issues in 1.5.3
        arjen.poutsma Arjen Poutsma made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        157d 7h 32m 1 Arjen Poutsma 03/Jul/08 9:30 AM
        Resolved Resolved Closed Closed
        18d 12h 37m 1 Arjen Poutsma 21/Jul/08 10:07 PM

          People

          • Assignee:
            arjen.poutsma Arjen Poutsma
            Reporter:
            dl_dan Dan Luputan
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: