Skip to content

Commit

Permalink
use spring (and java properties) to configure the uuid path minter'
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeer committed Jun 25, 2013
1 parent 1a26123 commit cf63e95
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion fcrepo-webapp/src/main/resources/spring/rest.xml
Expand Up @@ -7,13 +7,20 @@
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">


<context:property-placeholder/>

<!-- Context that houses JAX-RS Resources that compose the API
as well as some utility gear. -->

<context:annotation-config/>

<!-- Mints PIDs-->
<bean class="org.fcrepo.identifiers.UUIDPathMinter"/>
<bean class="org.fcrepo.identifiers.UUIDPathMinter">
<constructor-arg type="int" index="0" value="${fcrepo.uuid.path.length:2}" />
<constructor-arg type="int" index="1" value="${fcrepo.uuid.path.count:4}" />
</bean>

<bean class="org.fcrepo.session.SessionFactory"/>

<context:component-scan base-package="org.fcrepo.services, org.modeshape.web.jcr.rest, org.fcrepo.api, org.fcrepo.serialization, org.fcrepo.responses, org.fcrepo.exceptionhandlers, org.fcrepo.audit, org.fcrepo.url"/>
Expand Down

0 comments on commit cf63e95

Please sign in to comment.