For me, transients make sense in the service. I like to think of it  
like this:

If I am the library developer developing for another developer, would  
I put the responsibility on them to know what type of transient to  
pass into my services?

I am interested to see what others say on this topic.

-D


On Jan 13, 2008, at 1:23 PM, Baz wrote:

> I am curious where most of you are creating your transient objects  
> as I have seen it done in the controller and service an equal  
> number of times.
>
> Do you do it like this (pseudo code):
>
> IN THE CONTROLLER
> var UserID=get('UserID');
> var UserBean=create('UserBean);
> var UserService=create('UserService');
> var Result=UserService.load(UserBean); //returns fully populated  
> userbean (or populates it by reference)
>
> ---------
>
> Or do you do it like this:
>
> IN THE SERVICE
> var UserID=get('UserID');
> var UserService=create('UserService');
> var Result=UserService.load(UserID); //creates and returns fully  
> populated userbean
>
> Cheers,
> Baz
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CFCDev" 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/cfcdev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to