Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Error in Lifecycle Callbacks section [SPR-17453] #21985
In the Initialization Callbacks section it is mentioned:
We recommend that you do not use the InitializingBean interface, because it unnecessarily couples the code to Spring.
After that there are displayed 2 code examples. The second one uses the InitializingBean callback interface and couples the code to Spring. However, the text mentions "However, the second of the two preceding definitions does not couple the code to Spring." which is wrong. It should say the first of the two...
The same happens in the next section regarding the Destruction Callbacks.
Referenced from: pull request #2004