constretto/constretto-core — pull request #7 by endremm (2012-08-01 11:23:07+00:00)
Title: Add support of command param CONSTRETTO_OVERRIDE...

...to easily support override of properties runtime.

Hi, Kaare!

We've been talking a couple of times how Constretto could handle an override file given runtime. I have worked with Tor Arne Kvaløy today with a patch that makes this possible. We tried different solutions, but ended up using a new cmd parameter that can take one or more stores to add to the builder.

When doing this, both Spring XML and Java is supported out of the box. Our applications don't need any changes getting the new feature working, and there should be no side effects either.

We were wondering if the code for reading the override param should be placed in "DefaultConfigurationContextResolver". Do you have any thoughts of that?

And what do you think about this feature?

Thanks!

Best regards
Endre M. Meckelborg
FINN oppdrag