Hey Jorge,

I use decorators for all my transfer objects, even if there is nothing
in them so that I can type them throughout my entire application.
This way, the decorators are right there and ready for you if (and
more likely, when) you need to add additional functionality.  Early in
their lives, many of them actually wrap no additional methods to the
Transfer object, and just look like:

<cfcomponent displayname="UserDecorator for MyApp"
extends="myApp.model.utils.AbstractTransferDecorator">
 <cffunction name="configure" access="public" returntype="void">
  <!--- nothing yet --->
 </cffunction>
</cfcomponent>

When you do it like this, you can specify the type as:
"myApp.model.businessObjects.UserDecorator" .  If you don't do it this
way, you will need to specify the type of "any", which I don't like,
or specify the type as "transfer.com.TransferObject" as you pointed
out, which I also don't like.

Hope that helps,
Brian

ps, if you decide to use decorators, don't forget to specify the path
to the decorator in the transfer.xml file:

<object name="User" table="user"
decorator="myApp.model.businessObjects.UserDecorator">


---------------

On Jan 26, 7:34 pm, Jorge Loyo <jorgel...@gmail.com> wrote:
> Quick question, what is the returntype that you have in your listener
> methods if the method will return a TransferObject?
>
> Do you have the returntype="transfer.com.TransferObject"? This is what
> I am using as opposed to using the {Package}.{Object} defined in the
> transfer.xml, but I would like to know if this is fine, or you
> recommend something else.
>
> Thanks,
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to Mach-II for CFML list.
To post to this group, send email to mach-ii-for-coldfusion@googlegroups.com
To unsubscribe from this group, send email to 
mach-ii-for-coldfusion-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/mach-ii-for-coldfusion?hl=en
SVN: http://greatbiztoolsllc.svn.cvsdude.com/mach-ii/
Wiki / Documentation / Tickets: 
http://greatbiztoolsllc.trac.cvsdude.com/mach-ii/
-~----------~----~----~----~------~----~------~--~---

Reply via email to