Apache » Cocoon »

  Cocoon Core
      2.2
   homepage

Cocoon Core 2.2

Block structure

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

Path

Patterns

Description

/COB-INF/sitemap.xmap -

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

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

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.

/COB-INF/

*.*

Cocoon resources

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

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

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

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