commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From robert burrell donkin <robertburrelldon...@blueyonder.co.uk>
Subject [digester] named stacks
Date Sun, 13 Jul 2003 17:08:59 GMT
i've been thinking about a user request to use the result of the method 
call in a CallMethodRule as a parameter in a subsequent call. most 
inter-rule communication in digester is done using stack. a rule instance 
pushes something onto a stack which is later popped off by another rule.

digester already has two stacks (the main one and the params one) together 
with accessor methods. but i'd say that adding more stacks like this will 
quickly become counterproductive. this strategy also limits the ability of 
users to create custom rules which communicate in the right way.

so, i'm thinking about adding a map of stacks indexed by strings which are 
lazily created on demand. this will be exposed by accessor methods which 
take a name string in addition to the rest. whenever new rules need to use 
a new stack, we add a key constant (probably starting with 
"org.apache.commons.digester") and then access the stack through the named 
stacks methods.

comments?

- robert


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