Hi Dan, This is what you need. Works really well - http://www.briankotek.com/blog/index.cfm/2008/1/14/My-Transfer-Decorator-Bea n-Injector-Observer-Is-Now-Available
--- James Allen E: [email protected] E: [email protected] Blog: http://jamesallen.name Twitter: @CFJamesAllen (Coldfusion / Web development) Twitter: @jamesallenuk (General) -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Dan Vega Sent: 04 June 2009 14:50 To: transfer-dev Subject: [transfer-dev] Injecting beans into decorators I am sorry if this is a dumb question but I am just getting started with writing my own decorators. I have a Product decorator that extends my base decorator like so. <cfcomponent displayname="Product Transfer Decorator" output="false" extends="AbstractTransferDecorator"> <cffunction name="configure" access="public" output="false" returntype="any"> <cfargument name="validator" type="any" required="true"> <cfset setValidator(arguments.validator)> <cfreturn this> </cffunction> </cfcomponent> >From what I have read configure is called when the decorator is instantiated. Normally when I set up my objects in coldspring I can inject other dependencies but here I am a little lost. How do I pass a validator bean that I setup in cs into this decorator. Thanks for the help! --~--~---------~--~----~------------~-------~--~----~ Before posting questions to the group please read: http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer You received this message because you are subscribed to the Google Groups "transfer-dev" 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/transfer-dev?hl=en -~----------~----~----~----~------~----~------~--~---
