Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# tdanz 4/12/2006 6:50 AM
(i) Hi All!

Today I have spent sometime to study the new priciples concerning content abstraction and Core Repository refactoring.

And here I have some ideas.
(or haven't I dug deeply enough into the code from the current svn version :)


1.) ServiceModules
==============


Every internal core capabitity (like file handling and so on) is built as a component / service using the Castle MicroKernel with a defined contract.
But I cannot find any possibility to easily write extensions to these services. Ok I can change the global.aspx or make some changes to the web.config to do this.

But a kind of ServiceModule that can be installed like the current modules would be much more flexible!
So the module installer proceeds the normal installation (like creating tables with install.sql) and update procedure.
But the modules are not loaded with a section that should be displayd on a webpage.
They are added to the _kernel as a component with a contract (self defined interface or one of the existing once) and an implementation after the default core services are added.

So everybody can easily create new services that can be used by other modules and the module installer takes care for correct updates, ...


2.) Content Abstraction
=================


In the Cuyahoga Wiki I have found the integration of different content types by using the base class ContentItem. But as we are using the MicroCernel it would be much more flexible to see content items as a component / service that can be registered to the _kernel by using .AddComponent and using the defined contract (=interface) instead of inheriting from ContentItem.
So extending content types would be much more flexible. And with the possibility of ServiceModules these types can also be extendet with external modules.
The only hard thing here is to define a good contract :)


What do you think about that?

cu
Thomas
# mgaerber 4/12/2006 7:07 AM
Hi,

1) Good idea.

2) The problem here is performance (as Martijn told me ;-)) With every bit of content being a serviced component the cms could quickly go down...otherwise it would be the better solution.

# tdanz 4/12/2006 9:08 AM
Hi mgaerber!

So the best version in my opinion for 2) is to use a hybride concept that on the one (high performance) side implements an interface (IContentItem) in internal concrete classes (as described in the wiki). And one concrete content type should be a "CustomContent" that acts like a wrapper / adapter for a serviced component that is retrieved from the _kernel. So this type also needs some userdata where at minimum the key for the service is provided.

This would be performant AND extensible.

What do you think?

cu
Thomas
# martijnb 4/12/2006 10:15 AM
1) Very interesting!

2) It's just a feeling I have that this causes issues, but we might as well ask the Castle guys about it.
I heard they added IoC for domain objects in Spring 2.0 for Java, so that might be interesting to look at.
# tdanz 4/12/2006 11:01 AM (edited 4/12/2006 2:06 PM)
Maybe also the internal services (filehandling, ...) should than be integrated by using external ServiceModules so that they are easily exchangeable by other implementations (so that our micro kernel can show it's potential (h)(ci) ).

Concerning the content abstraction. I tried to find what you meant concerning IoC and domain objects at the springframework.org homepage but I couldn't find it. Maybe you have a link so I can see what you mean?

cu
Thomas
# tdanz 4/18/2006 1:39 AM
Hi again!
What are the plans now about that architecture?
And most important ... how can I help?!?
cu Thomas
# mgaerber 4/18/2006 2:21 AM
tdanz how can I help?!?
cu Thomas

You could describe your proposal on the wiki and suggest how to integrate your approach.
We could then discuss the implementation ( and I would update the "ContentItem" stuff ;-) )
# martijnb 4/18/2006 3:09 PM
tdanzWhat are the plans now about that architecture?

I'm a little behind now, but I'll try to outline the current architecture with the IoC stuff on the wiki. It means describing the current state of affairs. Hopefully it can serve as a starting point for more interesting ideas (including yours).
And most important ... how can I help?!?

First and foremost, by contributing ideas on the wiki or on this forum. Then, when the teams start building, you can join one of the teams and focus on concrete items.
# tdanz 4/18/2006 10:23 PM
morning :) ... I will do as you say :)
# tdanz 4/19/2006 1:04 AM
The first idea summary for this topic is online in the wiki now
http://wiki.cuyahoga-project.org/wiki/index.php/Architecture_options_/_ideas_based_on_the_new_IoC_Core_Repository

I will post more details (hopefully) soon (a)

cu
Thomas