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

MethodEndpoint.getBean is inconsistent with its API

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.4
    • Fix Version/s: 2.1.1
    • Component/s: Core
    • Labels:
      None

      Description

      The API description of MethodEndpoint.getBean says "Returns the object bean for this method endpoint." But if the constructor with a BeanFactory argument is used, it actually returns the bean name (String) instead of the actual bean!

      You might correct the documentation, but I'd much prefer if you fix the implementation to do as the documentation says, since currently you need to get hold of the BeanFactory as well to get to the endpoint object, and the MethodEndpoint does not provide it.

        Activity

        hpstoerr Hans-Peter Störr created issue -
        arjen.poutsma Arjen Poutsma made changes -
        Field Original Value New Value
        Assignee Arjen Poutsma [ arjen.poutsma ]
        Fix Version/s 2.1.1 [ 13012 ]
        arjen.poutsma Arjen Poutsma made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        arjen.poutsma Arjen Poutsma made changes -
        Time Spent 0.1h [ 360 ]
        Worklog Id 29145 [ 29145 ]
        arjen.poutsma Arjen Poutsma made changes -
        Status In Progress [ 3 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            arjen.poutsma Arjen Poutsma
            Reporter:
            hpstoerr Hans-Peter Störr
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - Not Specified
              Not Specified
              Logged:
              Time Spent - 0.1h
              0.1h