commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Craig McClanahan <craig...@gmail.com>
Subject Re: [digester] Can rules be re-used?
Date Sun, 16 Jan 2005 07:02:27 GMT
The only restriction on reuse is that you can't use the same Digester
instance on two different threads at the same time.  Other than that,
you can reuse Rules instances as needed.

Craig


On Sat, 15 Jan 2005 20:45:05 -0700, Wendy Smoak <java@wendysmoak.com> wrote:
> Can rules be re-used or is this likely to cause problems?
> 
>       Rule rule = new SetNestedPropertiesRule();
>       rule.setAllowUnknownChildElements( true );
>       digester.addRule( "download/person", rule );
> 
>        //adding same rule instance, but with a different pattern
>       digester.addRule( "download/webuser", rule );
> 
> I haven't found anything that says one way or the other, but I'll avoid it
> unless someone knows for sure.
> 
> --
> Wendy Smoak
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
> 
>

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


Mime
View raw message