Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

Page: 1 2
# mgaerber 2/9/2006 3:11 AM
Okay, looking at the stuff I'll try to extract some ideas for the content abstraction part.

Concerning IoC, it would be great if the modules ( their controllers and/or pages) could be registered with the IoC container as well.
So, you only name the dependencies (services used) and can use them in the module without bothering on how to instantiate them, or how they're implemented.
So you would have all the Session/CoreRepos/Authentification at hand without querying explicitly for it.

# martijnb 2/9/2006 1:51 PM
mgaerberConcerning IoC, it would be great if the modules ( their controllers and/or pages) could be registered with the IoC container as well.
So, you only name the dependencies (services used) and can use them in the module without bothering on how to instantiate them, or how they're implemented.
So you would have all the Session/CoreRepos/Authentification at hand without querying explicitly for it.

I was thinking the same here :). Currently the modules only register their NHibernate mapping files in a central place. There are some dirty hacks to make that work properly. I'd love to get rid of these.
# mgaerber 2/12/2006 1:52 AM
maritjnbCurrently the modules only register their NHibernate mapping files in a central place

Asking on the Castle forum, I didn't get a satisfying answer either...

To get the pages work as components, I think it will suffice to register their parent classes (interfaces) as components.
But will have to check this out in more detail.

I will have a deeper look into Spring.NET, too. As far as I could see, they have that kind of Page(Class) hierarchy (using Spring.Web.Page) which can be used in a componentized fashion.

Generally, we could consider both candidates (Castle, Spring), because the NHibernate facility is not a big seller for Castle, looking at what's already built into Cuyahoga ;-)

And Spring is designed for the Page Controller way of doing ASP.NET, so might fit better from the beginning.

Have to summarize the pros and cons. If you want I can write a small article...



# martijnb 2/12/2006 6:18 AM
mgaerberTo get the pages work as components, I think it will suffice to register their parent classes (interfaces) as components.
But will have to check this out in more detail.

What I meant was more like registering the module controllers in the container. Not pages or controls.
Have to summarize the pros and cons. If you want I can write a small article...

That would be great. I'm a little bit lost whether which one would suit us best. Choices, choices...
# martijnb 2/18/2006 4:09 AM
Max, have you gotten anything wiser? I saw two posts of you on the Spring.NET forum but without any responses yet...

In the meantime, I've been fiddling around with the Castle stuff. There will be some issues, but overall it 'feels' right.
# martijnb 2/18/2006 6:39 AM
Duhhh, if I had only checked the wiki. Thanks!
# mgaerber 2/18/2006 12:10 PM
Hi,

I could not finish the summary yet, but from my point of view, if we want get some "web extras" we should choose Spring, otherwise Castle will be probably easier to configure...

It always depends ;-)
Page: 1 2