Gary Gregory wrote:
Hello Oliver: I took a quick look at the ticket you linked to below. For this to work for System properties, a simple VariableResolver would do the trick I think. Maybe a generic MapVariableResolver could also be provided and maybe a factory methods in order to say simple things like:Interpolator.newInterpolator(System.getProperties()).resolve("The file is here ${java.io.tmpdir}");
I should point out that System.getProperties() returns a Properties which extends Hashtable which implements Map. So, these are not two separate use cases.
Thus an API of the form might be enough: StrBuilder.replace(prefix, suffix, map) StrBuilder.replaceAll(prefix, suffix, map) Stephen --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
