Fix for #25061

Comment From: hzmpay

About invokeBeanFactoryPostProcessors methods of refactor in #22810 has been rejected

Comment From: hzmpay

I think to reply registerBeanPostProcessors methods of refactor should be the same.

Comment From: sbrannen

Thanks for PR.

Unfortunately, the proposal constitutes breaking changes.

In light of that, I am closing this PR.

For additional information, please see https://github.com/spring-projects/spring-framework/pull/22810#issuecomment-485730890 and https://github.com/spring-projects/spring-framework/pull/26273#issuecomment-751179375.