PDA

View Full Version : Method injection


eboix
07-10-2005, 11:58 AM
Hi all,

Does Spring.net support method injection ?

That is, I want to obtain non-singleton objects via "getMyNonSingletonObject()" rather than having to couple my class with Spring by using appContect.getObject("myNonSingletonObject").

I've been searching the docs and forums and haven't found references to this.

Regards,
Esteve

Mark Pollack
07-10-2005, 01:43 PM
Hi Esteve,

Sorry, Spring.NET don't support method injection yet. It is otherwise feature complete with Spring.Java 1.2.2. I believe we can implement this within the constraints that using dynamic aop proxies in .NET places on classes, either implementing an interface or declaring methods as virtual. I've put this on the roadmap for 1.1.

Cheers,
Mark