<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
In poking around, I discovered something else interesting about
PropertySource usage. In a web application context, in addition to
the default ProperySource impls which read from system properties
and from environment vars, the web context gets 2 additional ones
that read from servlet context and servlet init params. <br>
<br>
One could do PropertySource-based replacement based on those
directly, I suppose.<br>
<br>
It also means, I think, that in an ApplicationContextInitialzier
impl, one could for example read a base directory property from one
of those params (system/environment/servlet) by using the
appropriate PropertySource from the context that is passed in, and
then load up some new properties relative to that for a new
PropertySource, or whatever. Maybe useful, maybe not.<br>
<br>
Fwiw, there is also a JNDI PropertySource impl included.<br>
<br>
Looks like writing a custom PropertySource impl is also pretty easy,
so that's an option too.<br>
<br>
<br>
</body>
</html>