Only just saw your reply Sean - thanks for that.

I shall get myself to the subscription page shortly! :)

Thanks for confirming how you'd handle the image resizing scenario.
That's how I was thinking about it. Get the relevant compositions
setup and then have methods on the business object which delegate to
the correct object. That way the user object is still the single point
of access as it's passed around the application.

On 10 Apr, 03:00, Sean Corfield <[email protected]> wrote:
> On Thu, Apr 8, 2010 at 2:47 AM, James Allen <[email protected]> 
> wrote:
> > Thanks Sean! That sounds just superb. Thanks for the FAQU reminder. I've
> > been meaning to subscribe to that for years.
>
> Get thee to the subscription page immediately! :)
>
> > I was thinking of an example of this last night. Say you have a user object
> > that holds a reference to an avatar for that user. When the user uploads an
> > avatar image, would the user.cfc take care of the resizing and storage of
> > the image or would you ideally inject an image processor cfc into the
> > user.cfc? The main thing here being that user.cfc is handling the image
> > operation rather than it going via a service.
>
> I'd probably have an Avatar.cfc to deal with the logic but have
> convenience methods on User.cfc that delegated to its internal
> Avatar.cfc.
> --
> Sean ACorfield-- (904) 302-SEAN
> Railo Technologies, Inc. --http://getrailo.com/
> An Architect's View --http://corfield.org/
>
> "If you're not annoying somebody, you're not really alive."
> -- Margaret Atwood

-- 
Model-Glue Sites:
Home Page: http://www.model-glue.com
Documentation: http://docs.model-glue.com
Bug Tracker: http://bugs.model-glue.com
Blog: http://www.model-glue.com/blog

You received this message because you are subscribed to the Google
Groups "model-glue" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en

Reply via email to