Spring.Net as IoC container

Topics: Prism v2 - WPF 3.5
Jul 16, 2009 at 5:49 AM


I am planning to use Spring.Net as the IoC container with Composite Application Library for WPF. Can somebody provide me a working example of how this can be done using IContanerFacade implementation, SpringBootStrapper and CommonServiceLocator.SpringAdapter.

You can mail me the source code of example at vn_nilesh@yahoo.com [vn_nilesh at yahoo dot com]

Jul 16, 2009 at 3:20 PM

I have the exact same issue - I checked out http://blogs.infosupport.com/blogs/willemm/archive/2008/09/16/Using-Spring.NET-as-IOC-container-for-Composite-WPF.aspx  by Willem Meints, and tried porting it to the CAL Feb 09 release, but have not had any luck getting this to work.

Is there a working sample of a Spring Bootstrapper for CAL?

Jul 20, 2009 at 1:19 PM

Is there something in the UnityBootstrapper that automatically recognizes Shell?

At this point, using Spring (and swapping out IUnityContainer for IApplicationContext)



 Shell shell = Container.GetObject("Shell") as Shell;



line is throwing a NoSuchObjectException - no object named Shell is defined