I've learnt that I can provide Spring with a <context:property-placeholder>
element, which appears to use a PropertyPlaceholderConfigurer to interpolate variables (i.e. replace tokens like ${foo}
) against a properties file.
Is there a way to customize the class that's used for resolving the tokens? In particular, I'd quite like to use an Apache Commons Config Configuration
object to provide the values of the tokens, rather than using a properties file.