You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using GeneratedMethods#add with getInstance for a given bean name generates getBeanNameInstance. The javadoc of add mentions that getInstance is the suggested name.
get, set and is are special in the suggested name. It'll be considered a prefix, followed by the qualifier and then the remaining of the suggested part. Someone using the same code with determineInstance would not get the same behavior.
Considering that the suggested name will always be qualified, it would be nice to provide a bit more control over the method name (including overriding that default behavior). Alternatively, the javadoc to document the status quo can be improved.
The text was updated successfully, but these errors were encountered:
Using
GeneratedMethods#add
withgetInstance
for a given bean name generatesgetBeanNameInstance
. The javadoc ofadd
mentions thatgetInstance
is the suggested name.get
,set
andis
are special in the suggested name. It'll be considered a prefix, followed by the qualifier and then the remaining of the suggested part. Someone using the same code withdetermineInstance
would not get the same behavior.Considering that the suggested name will always be qualified, it would be nice to provide a bit more control over the method name (including overriding that default behavior). Alternatively, the javadoc to document the status quo can be improved.
The text was updated successfully, but these errors were encountered: