Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added object serializer module back in
  • Loading branch information
ajs6f committed Apr 24, 2013
1 parent c4785e0 commit 436d174
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
6 changes: 4 additions & 2 deletions pom.xml
Expand Up @@ -45,13 +45,15 @@
</exclusion>
</exclusions>
</dependency>
<!-- these following modules are unstable as we transition to Jersey -->
<!--

<dependency>
<groupId>org.fcrepo</groupId>
<artifactId>fcrepo-object-serialization</artifactId>
<version>${project.version}</version>
</dependency>

<!-- the following module is unstable as we transition to Jersey -->
<!--
<dependency>
<groupId>org.fcrepo</groupId>
<artifactId>fcrepo-bagit-object-serialization</artifactId>
Expand Down
14 changes: 12 additions & 2 deletions src/main/resources/spring/rest.xml
Expand Up @@ -2,9 +2,11 @@
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:util="http://www.springframework.org/schema/util"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd">
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd">

<!-- Context that houses JAX-RS Resources that compose the API
as well as som utility gear. -->
Expand All @@ -14,8 +16,16 @@
<!-- Mints PIDs-->
<bean class="org.fcrepo.identifiers.UUIDPidMinter"/>
<bean class="org.fcrepo.session.SessionFactory"/>

<util:map id="serializers" key-type="java.lang.String" map-class="java.util.HashMap"
value-type="org.fcrepo.serialization.FedoraObjectSerializer">
<description>Map from formats to serializers for Fedora objects</description>
<entry key="jcr/xml">
<bean class="org.fcrepo.serialization.jcrxml.JcrXmlSerializer"/>
</entry>
</util:map>

<context:component-scan
base-package="org.modeshape.web.jcr.rest, org.fcrepo.api, org.fcrepo.api.legacy, org.fcrepo.exceptionhandlers, org.fcrepo.generator, org.fcrepo.exceptionhandlers"/>
base-package="org.modeshape.web.jcr.rest, org.fcrepo.api, org.fcrepo.api.legacy, org.fcrepo.serialization, org.fcrepo.generator, org.fcrepo.exceptionhandlers"/>

</beans>

0 comments on commit 436d174

Please sign in to comment.