I have some configuration which are set by the users using java class. I would like to pass on these configuration to Spring Java Config classes. How do I achieve this in SJC?

For instance, the database configuration is set in the Configuration java class (custom code). I would like to pull the database configuration from this custom class and dynamically pass these parameters to DataSourceConfiguration (SJC).

Appreciate any insight into this.