commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon Kitching <si...@ecnetwork.co.nz>
Subject [digester] InvokeMethodRule
Date Fri, 09 Apr 2004 11:44:22 GMT
Hi,

I've created a branch called DIGESTER_INVOKE_METHOD_BRANCH, and
committed some code to it.

This is an implementation of a new variant of CallMethodRule.
This new variant invokes its target method as soon as all parameters are
available. As discussed earlier on this list, this makes behaviour more
intuitive in most cases.

It also takes the opportunity to learn some lessons from CallMethodRule,
and hopefully provide a cleaner API.

And hopefully it provides a model for implementing "immutable object
creation", where it is desired to create objects with non-default
constructors, but where the data is present as child tags, not as
attributes.

I don't think this is candidate material for release 1.6, as it is a
reasonably large body of new code. But it does pass *all* the tests
provided for CallMethodRule (modified to suit the InvokeMethodRule api).
I'm committing it now so that people can see the code (and so I don't
lose it!).

All comments welcome.

Regards,

Simon


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