Skip to content

Improve Javadoc of GeneratedMethods#add to describe naming conventions #28997

@snicoll

Description

@snicoll

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.

Metadata

Metadata

Assignees

Labels

theme: aotAn issue related to Ahead-of-time processingtype: documentationA documentation task

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions