Apache » Cocoon »

  Cocoon Core

Cocoon Core 2.2

Block structure

Technically, a block is a Java Archive (jar) file following a particular directory structure:




/COB-INF/sitemap.xmap -

If the blocks uses  the SitemapServlet service, this is the default location of  the sitemap.

/COB-INF/config/spring/ *.xml

Configuration files for Spring beans, that are only available within this block. There is no way to access them from other blocks.

/COB-INF/config/properties/ *.properties

Properties available within the sitemap.



Cocoon resources

/META-INF/cocoon/spring/ *.xml

Configuration files for Spring beans, that are globally available. Make sure that the bean ids are unique.

/META-INF/cocoon/avalon/ *.xconf

Avalon-style component configurations, that are globally available.

/META-INF/cocoon/properties/ *.properties

Default values for properties.

/META-INF/cocoon/properties/[running-mode]/ *.properties

Properties valid for particular running modes.



Java classes and resources