Ok, so I accept that I am like the leastest smartest person on CFC Dev, so
thanks for letting me mooch all of your super smarts....

I read the ColdSpring documentation this morning and I like where it is
going. But just to be clear... passing in objects via constructors or using
setter injection... those are both forms of IoC right?

Follow up: Let's say that I have an entity bean that has a Validat() method
and that that method returns, lets say, class EntityBeanValidationCollection
which is just a collection of error messages implementing
InterfaceCollection. Should I let the bean take care of creating the
collection? Or is this something that I would want to pass in via the
constructor:

<cffunction name="Init" returntype="PublicationBean">
  <cfargument name="UDFLib" type="UDFLib" required="yes" hint="UDF
libraries" />
  <cfargument name="Errors" type="EntityBeanValidationCollection"
required="yes" />

<cfset VARIABLES.UDFLib = ARGUMENTS.UDFLib />
<cfset VARIABLES.Errors = ARGUMENTS.Errors />

.... More code here ....

  <cfreturn THIS />
</cffunction>


Thanks CF'ers!

......................
Ben Nadel 
Web Developer
Nylon Technology
6 West 14th Street
New York, NY 10011
212.691.1134
212.691.3477 fax
www.nylontechnology.com

"Vote for Pedro"



----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to 
[email protected] with the words 'unsubscribe cfcdev' as the subject of the 
email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting 
(www.cfxhosting.com).

An archive of the CFCDev list is available at 
www.mail-archive.com/[email protected]


Reply via email to