commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Price <>
Subject Re: [digester] addSetNext call placement
Date Tue, 11 Mar 2003 18:24:00 GMT

Craig R. McClanahan wrote:

> Ordering only matters among rules with the same pattern String -- they are
> executed in the order they were registered.  So, if you're creating the
> foo object before using the set next rule, you will want to register the
> object create rule first.
> For example, my rulesets are full of things like:
>   digester.addObjectCreate("some/pattern", "com.mycompany.MyFoo");
>   digester.addSetProperties("some/pattern");
>   digester.addSetNext("some/pattern", "addFoo");

Great, thanks Craig.  The above example is exactly what I had in mind 
(create an object and establish parent/child relationship immediately 
[at the same node in the XML file] before continuing to call methods on 
the new object at later nodes).


View raw message