Dave Ross wrote:

as Paul said, you're spot on, but I thought I'd mention the
init-method attribute since it probably relates:

When you specify an init-method on a <bean/> tag, ColdSpring will call
the specified method after all of the CFC's dependencies have been
resolved. This means you can use <property/> and setter methods and
still have a chance to execute some arbitrary code before anything
else happens. Oddly, in the java world, people use "init" as their
init-method name, e.g. <bean ... init-method="init" />, which probably
isn't a good idea since our constructors are named init :) We usually
use "setup" instead...

-Dave
Thanks Dave - include that paragraph into your pdf document. I was having some problems trying to figure out when my init-method was getting called. Knowing that it's called after all the dependencies have been resolved is a good little FAQ.

.Peter

--
Peter J. Farrell :: Maestro Publishing
http://blog.maestropublishing.com

Rooibos Generator - Version 2.1
Create boilerplate beans and transfer objects for ColdFusion for free!
http://rooibos.maestropublishing.com/

Member Team Mach-II - It's coming...we're in a code freeze!



Reply via email to