Apache » Cocoon »    Cocoon Core  Cocoon Core 2.2
SitemapModelComponent Contracts  The SitemapModelComponent  The
SitemapModelComponent identifies the contract between the
Sitemap and your pipeline components that create or transform
information. The types of components that fit within this
umbrella are your Generators, Transformers, and your Readers. It
is very important to note that all components implementing this
interface must be pooled or created on demand. This is due to
the separation between the setup and the execution. If you don't
ensure every instance of the component is unique within a
pipeline, or across pipelines, then the setup process will start
killing all the other setups and you will end up with serious
race conditions. It's not that they need synchronized keywords
applied to the methods, its that the methods have to be called
in a certain order. This is by design. If you really think about
it, due to the SAX infrastructure we would still need to keep
them synchronized because the order o