commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <craig...@apache.org>
Subject Re: [digester] Feature addition to digester
Date Mon, 20 Oct 2003 16:16:28 GMT
Remy Maucherat wrote:

> Hi,
>
> I'd like to add a feature to the digester, allowing property 
> replacement, similar to Ant. Basically, ${...} in an attribute value 
> would get replaced by a property value.
>
> The following elements would be added:
>
> * PropertySource interface, containing a String getProperty(String 
> key) method
>
> * Digester.setPropertySources(PropertySource[] sources), which would:
>   - enable property replacement (this would be disable otherwise, for 
> 100% compatibility)
>   - use the sources in the given order until one returns a non null 
> value; if all return null, no replacement occurs
>
> The implementation is very simple, and the code is present in the 
> Tomcat sources.
>
> This would allow nice dynamic integration capabilities for files a 
> container which XML files are parsed by the digester, and (more 
> generally) will allow cool Ant-like properties management.
>
> I can commit a patch if the feature is considered useful (the Tomcat 
> community certainly did like it).
>
> Comments ?
>
As I mentioned on TOMCAT-DEV, I'm +1 for this as long as the default 
behavior is backwards compatible (as Remy proposes it to be).

> Remy
>

Craig



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message