Although this does not fit your question, this part of the Weld documentation may be of interest to you.
Mentioning this - no, there is no standard way to inject arbitrary resources / resource files. I assume that this simply goes beyond the specification to standardize such a requirement, depending on individual requirements (Spring is not a specification, they can simply implement whatever they like). However, what CDI provides is aka typesafe mechanism for setting beans configuration holding on the one hand, and a flexible manufacturer mechanism for reading and creating such beans on the other. This is definitely the recommended method you requested.
The approach to which you are attached is certainly very good, even if it may be too much for your needs, depending on the type of properties that you plan to introduce.
A very CDI way to continue is to develop a CDI extension (which will encapsulate all the necessary classes nicely) and deploy it regardless of your projects. Of course, you can also contribute to the CDI extension directory or even Apache Deltaspike .
source share