Prior to this commit, the `GenericApplicationContext` configured the `AppliationStartup` on the `BeanFactory` only right before refreshing it. Delaying this has no purpose and we should instead configure it as soon as possible by overriding the setter method. Closes gh-25718