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.