开发者

spring.net injection into a page

开发者 https://www.devze.com 2023-02-02 03:47 出处:网络
Wondering if someone could help with with some Spring.net IOC integration into a .aspx page I have. At present the page is set up with controller ie. a Controller property is set with an object like s

Wondering if someone could help with with some Spring.net IOC integration into a .aspx page I have. At present the page is set up with controller ie. a Controller property is set with an object like so:

// Create a list of views
var views = new List<IView>() { this.MasterPage, this, this.ucHeader };

// Setup this page with a controller
this.Controller = new Controller(views);

What the above does is creates a list of Iview interfaces which is made up with a reference to the master page, current page and a header control which all inherit from IView. This is turn is passed in to the constructor of Controller object as shown above.

I want to move from this now and use Spring.net for IOC injection. Therefore with spring.net this will be achieved with xml files. I have this in place.

The problem I have is that I am n开发者_Python百科ot sure how I could about creating a list of the views, current, master page and ucHeader and passing to a Controller object.

Any advice on how I might achieve the above?


See http://forum.springframework.net/showthread.php?p=21861

0

精彩评论

暂无评论...
验证码 换一张
取 消