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 sandbox).
- robert
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]