I would like to see the obvious application, which is a hierarchical visitor for domain objects. Ideally, create both a visitor interface and a visitor adapter (with empty implementations for all visit() methods.)
A set of non-hierarchical visitors (say for a choice object to simplify dispatching on the choice value's type), would be of use as well. The two could be combined into a single framework by specifying an optional "recurse" flag to the accept() method. - Godmar On 6/21/07, Ralf Joachim <[EMAIL PROTECTED]> wrote:
Hi Godmar, we are familiar with the Visitor pattern but what do you like to achive. Do you like the marshaller visit your domain objects? Should the domain objects generated by codegen be Visitable? Without a bit more of information we can only guess. Having said that ATM we only offer Listeners as outlined by Werner. Regards Ralf Godmar Back schrieb: > On 6/21/07, Werner Guttmann <[EMAIL PROTECTED]> wrote: > >> Both Castor XML and JDO support the usage of *Listeners. In other words, >> it all depends. Can you elaborate what you are trying to achieve ? >> > > You can read up on the pattern here: > http://en.wikipedia.org/wiki/Visitor_pattern > and > http://c2.com/cgi/wiki?HierarchicalVisitorPattern > > - Godmar > > --------------------------------------------------------------------- > To unsubscribe from this list please visit: > > http://xircles.codehaus.org/manage_email --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email
--------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email

