Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Document method visibility rules for @Bean methods [SPR-12345] #16950
There used to be documentation in the JavaConfig project that discussed the effect of method visibility on bean scope:
This documentation does not appear to exist in:
However, there is an example in that section regarding a
Nevertheless, it would be extremely useful to document these semantics.
Referenced from: commits f58e1db
Juergen Hoeller commented
I've added a note on
In the end, the declared Java language visibility has no immediate impact on the resulting bean definition. A
Actually, the most important part is that