thanks for the suggestion. We do not plan to do this at this point, as arbitrary config properties can become unwieldy.
I propose that you instead extend the settings app with new properties under Synchronization and base it on system settings (this will be more dynamic):
If you really need compile time (application context startup time) configuration properties, then you could create a spring factory bean in combination with the DhisConfigurationProvider, something like this:
class DhisConfigurationPropertyFactoryBean
implements FactoryBean
which uses the DhisConfigurationProvider to look up a given property. Have a look at ConnectionPropertyFactoryBean.java for reference.
On Tue, Mar 8, 2016 at 3:08 PM, Lars Helge Øverland lars@dhis2.org wrote:
Hi Vanya,
thanks for the suggestion. We do not plan to do this at this point, as arbitrary config properties can become unwieldy.
I propose that you instead extend the settings app with new properties under Synchronization and base it on system settings (this will be more dynamic):
If you really need compile time (application context startup time) configuration properties, then you could create a spring factory bean in combination with the DhisConfigurationProvider, something like this:
class DhisConfigurationPropertyFactoryBean
implements FactoryBean
which uses the DhisConfigurationProvider to look up a given property. Have a look at ConnectionPropertyFactoryBean.java for reference.