#
tdanz
(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
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