I'm trying to make some kind of all Environment properties validator. What I want is just take all properties from Environment.
(I already found this here: Spring: access all Environment properties as a Map or Properties object)
Next on all properties I want to make environment.getProperty(x) And If some properties are null then just I want add them and throw as message of Excpetion.
That works pretty well, but.. Checking of all dependencies is performing after logger initialization and after jpa/hibernate initialization.
Can I somehow get with my "validation mechanizm" before that actions and with access to Environment bean? Or maybe there is way to take Environment without running application?