I've noticed this as well. Whenever I have a setFoo() method it tries to wite it even if I do not ask it to in the xml configuration.
-----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Sean Corfield Sent: Wednesday, April 05, 2006 4:23 PM To: [email protected] Subject: [coldspring-dev] Setter being called when passing bean as constructor-arg? On 4/5/06, Dave Ross <[EMAIL PROTECTED]> wrote: > without even looking at the code, this is probably because of finnicky > auto-wiring code in the framework (we need to make sure it doesn't > autowire beans unless told to, which I don't think is the case right > now). Yup, it's definitely way too enthusiastic about autowiring... I removed the constructor-arg stuff from the example and changed the init() method to take no arguments. CS still called the setter. So CS is autowiring even in the absence of a property tag (which really surprised me). Looking at the framework code, there doesn't appear to be any way to tell CS to *not* autowire things...? -- Sean A Corfield -- http://corfield.org/ Got frameworks? "If you're not annoying somebody, you're not really alive." -- Margaret Atwood **************************************************************************** This email may contain confidential material. If you were not an intended recipient, Please notify the sender and delete all copies. We may monitor email to and from our network. ****************************************************************************
