Hey Sean, yes the default behavior is autowire by both. Next on the block is to be able to define byType | byName to have more control. Spring for Java has the same setup, btw.

Chris

Chris Scott
[EMAIL PROTECTED]
http://cdscott.blogspot.com/
http://www.coldspringframework.org/


GIF image







On Apr 5, 2006, at 11:29 PM, Sean Corfield wrote:

On 4/5/06, Sean Corfield <[EMAIL PROTECTED]> wrote:
This passes my test case (after adding autowire="no" to the top- level bean).

The default is byName?

BTW, it still autowires by both type and name :)

Given the following setters, it calls both of them:

<cffunction name="setThing" returntype="void" access="public" output="false">
                <cfargument name="thing" type="thing" required="true" />
                <cfset arrayAppend(variables.log,"setThing() called") />
                <cfset variables.thing = arguments.thing />
        </cffunction>
<cffunction name="setFoo" returntype="void" access="public" output="false">
                <cfargument name="foo" type="test.cs.thing" required="true" />
                <cfset arrayAppend(variables.log,"setFoo() called") />
                <cfset variables.foo = arguments.foo />
        </cffunction>

If you need the full test case, let me know (it runs automatically via
CFUnit every time I modify any code in my 'test' directory tree :)
--
Sean A Corfield -- http://corfield.org/
Got frameworks?

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood


Reply via email to