Carsten Ziegeler wrote:
Reinhard Poetz wrote:
Carsten Ziegeler wrote:Your wish is my command :)
The current solution for adding own components to Cocoon is to (optionally) add the role to the cocoon.roles file and to add the componentcomponents/roles on a per
(configuration)
to the global cocoon.xconf file.
What about providing the possibility to add
sitemap level? For example by providing a reference from within a sitemap in the map:components sections:as well,
<map:components roles-file="..." config-file="..."> .. </map:components>
So all of these components are available in this sitemap and in all subsitemaps.
Adding this (to 2.2) should be very easy and makes adding own stuff imho easier.
(As a second step - but this is independent it would be possible to move all definitions of sitemap components into these files
i like this. please start a vote so that we don't have to discuss in 6 month whether it was a community decision or not.leaving just the pipelines in a sitemap).
WDYT?
So, please cast your votes!
Here is my: +1
Thinking further... We could use for the sitemap the <import> directive I'm currently working on for cocoon.xconf.
The sitemap components could then be <map:components> <map:import src="blah.xconf" roles="blah.roles"/> ... </map:components>
Also, do we really need a roles file, which really is a component writer's concern? The role manager can be setup by aggregating all cocoon.roles files found in the classpath. That would make role management totally transparent.
WDYT?
Sylvain
-- Sylvain Wallez Anyware Technologies http://www.apache.org/~sylvain http://www.anyware-tech.com { XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }
