Open georgmittendorfer opened 4 months ago
Thanks for comments. This type of registration was originally added to support registering annotated methods and its "magical" behaviour was somewhat baked inside logic discovering those methods. I think you're a first one asking how this behaves so point taken as It wasn't intentionally left hard to use.
Current behaviour:
Currently the following registration (assuming there is some pojo named
command
)matches the method
but it would not match the method
That means that the option name needs to be equal to the parameter name but there is no reason for this as it is the only parameter. That is not very intuitive and it is not documented anywhere (at least I didn't find it).
Expected behaviour: