commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Scott Sanders <sc...@dotnot.org>
Subject Re: [digester] Feature addition to digester
Date Mon, 20 Oct 2003 16:06:42 GMT
I could see how it could be useful.  If you are willing to commit and 
support it, and the code is backwards-compatible (should be), then I am 
+1.  Go for it.

Scott

On Monday, October 20, 2003, at 08:13 AM, 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 ?


---------------------------------------------------------------------
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