Spring PropertySource and Environment

Brent Putman putmanb at georgetown.edu
Tue May 13 18:08:12 EDT 2014


On 5/13/14 5:03 PM, Cantor, Scott wrote:
> On 5/13/14, 4:58 PM, "Tom Zeller" <tzeller at dragonacea.biz> wrote:
>> Understood, and for tests, @ContextConfiguration takes an initializers
>> parameter. But, our ReloadableSpringService class uses
>> SpringSupport#newContext() to create a new application context, so we
>> will have to apply the custom app ctx initializer manually, IIUC. Most
>> of those services are in system/conf/services-system.xml, I think.
> Only if properties aren't inherited, 

Right.  To just do some global properties, we should just need the 1
initializer declared for the root web app context.

My other comments about using initializers in other places was musing
that they would be nice to have if you wanted to do something else and
more complex with the non-root contexts.

> but I thought they were.

I mentioned on the Friday call, but I did test this in a scratch
workspace with some manually created generic contexts, and the
properties were inherited as expected, based on having looked at their code.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://shibboleth.net/pipermail/dev/attachments/20140513/fbdb7f66/attachment.html 


More information about the dev mailing list