Considering that DependsOnDatabaseInitializationPostProcessor
is a BeanFactoryPostProcessor
it should use EnvironmentAware
to get a hold of the environment rather than the current dependency resolution.
The current arrangement could trigger early initialization of factory beans