Skip to content

MethodEndpoint.getBean is inconsistent with its API [SWS-787] #869

@gregturn

Description

@gregturn

Hans-Peter Störr opened SWS-787 and commented

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.


Affects: 2.0.4

Referenced from: commits 7a9eba7, ed43108

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions