commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From robert burrell donkin <>
Subject Re: [digester] give Digester access to private data
Date Sat, 08 Mar 2003 16:25:46 GMT
On Thursday, March 6, 2003, at 10:10 PM, Erik Price wrote:
> Simon Kitching wrote:
>> Simple answer: it can't. Any method intended to be invoked by the
>> Digester must be public (protected isn't sufficient either).
> Oh okay.  Thanks for the quick response.

simon's right that the standard rules that ship with digester use 
beanutils for introspection. the intention is to make introspection the 
same as the java language access rules (obeyed by java compilers).

there actually isn't anything inherent that ties digester to this kind of 
introspection - it's just that this is the aim of the standard rules.

IMHO the right way to approach this question would be to create new rules 
which vary the introspection systems used. using reflection to access 
private or protected methods can get a bit hairy - but the people using 
these rules should know that already.

i would be happy (if there is demand) to vary the design of the basic 
classes which use introspection, refactoring the introspection code into a 
separate interface allowing this to be varied more easily.

you might like to take a look at the clazz project (currently in the 

- robert

View raw message