Spring.Net as IoC container

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

hi,

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 2: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 12:19 PM

Is there something in the UnityBootstrapper that automatically recognizes Shell?

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

 the 

 

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

 

 

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