Thanks Knut, I'm sorry for the dumb question, but this is not very well described on the docs. I haven't see that <set-*> parameter you spoke of. So If I want to instantiate a class and use setter injection, I must not use <constructor> element? Could you send me an example?
Thanks a lot On 7/19/05, Knut Wannheden <[EMAIL PROTECTED]> wrote: > Vinicius, > > The <service> element is for constructor based injection only. All the > <set-*> elements are for setter based injection while the others are > for constructor based injection. Further, if you use any constructor > parameter elements at all, then these must match an existing > constructor. > > HTH, > > --knut > > On 7/18/05, Vinicius Carvalho <[EMAIL PROTECTED]> wrote: > > Hello there! I've asked this before in another topic... > > I know that Hivemind uses dependency injection in a trasparent way (it > > could be using setter or constructor right). But I'm always getting an > > error when trying to set via setter, all my services have the same > > interface and implementation (they differ only on another injected > > property), and so hivemind complains about not being able to find the > > right service (I'm sorry I don't have the message right now) and tells > > me to disable autowiring. I > > tried <constructor ..autowire-services="false"> and then... > > <service>productDAO</service> > > > > my classe has a setDAO(DAO dao) method. but it's not working. But when > > I modify the constructor of the class to receive a DAO instance, it > > works fine. > > > > Any ideias??? > > > > Thanks > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
