Spring PropertySource and Environment
Tom Zeller
tzeller at dragonacea.biz
Tue May 13 13:26:49 EDT 2014
Thanks Brent.
It was not clear to me how to "attach" the custom application context
initializer to an application context, but the following code to do so
manually helped me get clearer :
GenericXmlApplicationContext applicationContext = new
GenericXmlApplicationContext();
ApplicationContextInitializer myInitializer = new MyInitializer();
myInitializer.initialize(applicationContext);
applicationContext.load("/conf/applicationContext.xml");
applicationContext.refresh();
So, I think as Scott said, the custom app ctx initializer should look
for conf/idp.properties in well-known locations, and I guess we should
define idp.home in idp.properties, or we could assume it is parent to
conf/.
More information about the dev
mailing list