I want to implement some global configuration static class which will contain all the app's configuration. In addition I want to inject these parameters from the xml config file.
The first way is to create config class and inject it to each bean/class I need it. But I don't do it because my config class contains all the app's properties and inject it everywhere is too... I don't know what)
The second way is to try to inject the xml config values to static class but it is more like workaround..
Which way is better and why?