velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From plynch...@netscape.net
Subject RE: Clean wrappers?
Date Thu, 08 Aug 2002 18:48:55 GMT
What if instead of wrapping the objects, you have them implement
a simplified interface, and then only tell the designer about the
interface?

lloyd <subscr001@twilight-systems.com> wrote:

>It's often recommended that the developer put a complex object in a 
>simplified wrapper and then hand the wrapper to the designer in the 
>template.
>
>What if your complex object has nested complex objects (a heterogenous 
>tree, for example), that are made available via iterators to the 
>designer?  Is there an easy way to provide a wrapper for these objects 
>as well, while still maintaining the clean iterator and reference syntax 
>in the template?
>
>Or am I stuck with either writing custom iterators for every exposed 
>collection in the complex object, or creating and returning "redundant" 
>copies of the existing collections containing the wrapped objects?
>
>
>
>
>--
>To unsubscribe, e-mail:   <mailto:velocity-user-unsubscribe@jakarta.apache.org>
>For additional commands, e-mail: <mailto:velocity-user-help@jakarta.apache.org>
>
>


__________________________________________________________________
Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience
of buying online with Shop@Netscape! http://shopnow.netscape.com/

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/


--
To unsubscribe, e-mail:   <mailto:velocity-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:velocity-user-help@jakarta.apache.org>


Mime
View raw message