JCRSourceFactory is an implementation of
ModifiableTraversableSource on top of a JCR (aka JSR-170) repository.
Since JCR allows a repository to define its own node types, it is necessary
to configure this source factory with a description of what node types map to
"files" and "folders" and the properties used to store source-related data.
A typical configuration for a naked Jackrabbit repository is as follows:
<source-factories>
<component-instance class="org.apache.cocoon.jcr.source.JCRSourceFactory" name="jcr">
<folder-node type="rep:root" new-file="nt:file" new-folder="nt:folder"/>
<folder-node type="nt:folder" new-file="nt:file"/>
<file-node type="nt:file" content-path="jcr:content" content-type="nt:resource"/>
<file-node type="nt:linkedFile" content-ref="jcr:content"/>
<content-node type="nt:resource"
content-prop="jcr:data"
mimetype-prop="jcr:mimeType"
lastmodified-prop="jcr:lastModified"
validity-prop="jcr:lastModified"/>
</component-instance>
</source-factories>
A <folder-node> defines a node type that is mapped to a
non-terminal source (i.e. |