This page details the locations and purposes of the Fedora 4 configuration files.
For details on how to enable and configure these options, see this page.
The following spring files exist in a directory as configured by fcrepo4/fcrepo-webapp/src/main/webapp/WEB-INF/web.xml. This web.xml file contains a context-param element with param-name "contextConfigLocation". The param-value points to your spring configuration directory, usually a path like WEB-INF/classes/*.xml. Note that the files is src/main resources/spring are copied upon build to WEB-INF/classes.
<bean name "modeshapeRepofactory" class= "org.fcrepo.kernel.spring.ModeshapeRepositoryFactoryBean"> <property name="repositoryConfiguration" value="${fcrepo.modeshape.configuration:classpath:/config/single/repository.json"/> </bean> |
basic/infinispan.xml - FedoraRepository, FedoraRepositoryMetadata, FedoraRepositoryBinaryData
bdb/infinispan.xml - FedoraRepository, FedoraRepositoryBinaryData
chained/infinispan.xml - FedoraRepository, FedoraRepositoryBinaryData (2 loader w/ different fetchPersistentState)
clustered/infinispan.xml - clustered replication for FedoraRepository and FedoraRepositoryMetadata, clustered distribution for FedoraRepositoryBinaryData
file/infinispan.xml - FedoraRepository
leveldb/infinispan.xml - FedoraRepository leveldb store
ram/infinispan.xml - FedoraRepository in memory
Defining .cnd files such as these in repository.json will register namespaces and nodetypes found within:
Alternatively from definition in .cnd files as above, forms are available to add namespaces and nodetypes at these URL endpoints:
http://<host>/rest/fcr:namespaces
http://<host>/rest/fcr:nodetypes