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

        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.
        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

          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: