Created
June 10, 2014 17:06
-
-
Save rherrick/dc84706c79b6620f9c4a to your computer and use it in GitHub Desktop.
DICOM import context for mapping AE titles to separate projects
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<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.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd"> | |
<context:property-placeholder location="WEB-INF/conf/services.properties,WEB-INF/conf/services-custom.properties" ignore-resource-not-found="true" ignore-unresolvable="true"/> | |
<bean name="projectIdent1" class="org.nrg.dcm.id.FixedDicomProjectIdentifier"> | |
<constructor-arg value="project1"/> | |
</bean> | |
<bean name="projectIdent2" class="org.nrg.dcm.id.FixedDicomProjectIdentifier"> | |
<constructor-arg value="project2"/> | |
</bean> | |
<bean name="projectIdent3" class="org.nrg.dcm.id.FixedDicomProjectIdentifier"> | |
<constructor-arg value="project3"/> | |
</bean> | |
<bean name="baseSubjectIdent" class="org.nrg.dcm.id.ClassicDicomObjectIdentifier" factory-method="getSubjectExtractors"/> | |
<bean name="baseSessionIdent" class="org.nrg.dcm.id.ClassicDicomObjectIdentifier" factory-method="getSessionExtractors"/> | |
<bean name="baseAAIdent" class="org.nrg.dcm.id.ClassicDicomObjectIdentifier" factory-method="getAAExtractors"/> | |
<bean name="dicomObjectIdentifier1" class="org.nrg.dcm.id.CompositeDicomObjectIdentifier"> | |
<constructor-arg ref="projectIdent1"/> | |
<constructor-arg ref="baseSubjectIdent"/> | |
<constructor-arg ref="baseSessionIdent"/> | |
<constructor-arg ref="baseAAIdent"/> | |
<property name="userProvider" ref="receivedFileUserProvider"/> | |
</bean> | |
<bean name="dicomObjectIdentifier2" class="org.nrg.dcm.id.CompositeDicomObjectIdentifier"> | |
<constructor-arg ref="projectIdent2"/> | |
<constructor-arg ref="baseSubjectIdent"/> | |
<constructor-arg ref="baseSessionIdent"/> | |
<constructor-arg ref="baseAAIdent"/> | |
<property name="userProvider" ref="receivedFileUserProvider"/> | |
</bean> | |
<bean name="dicomObjectIdentifier3" class="org.nrg.dcm.id.CompositeDicomObjectIdentifier"> | |
<constructor-arg ref="projectIdent3"/> | |
<constructor-arg ref="baseSubjectIdent"/> | |
<constructor-arg ref="baseSessionIdent"/> | |
<constructor-arg ref="baseAAIdent"/> | |
<property name="userProvider" ref="receivedFileUserProvider"/> | |
</bean> | |
<bean name="dicomSCPExecutor" class="java.util.concurrent.Executors" factory-method="newCachedThreadPool"/> | |
<util:map id="cstores" key-type="java.lang.String" value-type="org.nrg.dcm.id.CompositeDicomObjectIdentifier"> | |
<entry key="AETITLE1" value-ref="dicomObjectIdentifier1" /> | |
<entry key="AETITLE2" value-ref="dicomObjectIdentifier2" /> | |
<entry key="AETITLE3" value-ref="dicomObjectIdentifier3" /> | |
</util:map> | |
<bean name="dicomSCP" class="org.nrg.dcm.DicomSCP" factory-method="create"> | |
<constructor-arg ref="dicomSCPExecutor"/> | |
<constructor-arg value="${services.dicom.scp.port}"/> | |
<constructor-arg ref="receivedFileUserProvider"/> | |
<constructor-arg ref="cstores"/> | |
</bean> | |
<bean name="dicomSCPManager" class="org.nrg.dcm.DicomSCPManager"> | |
<constructor-arg ref="dicomSCP"/> | |
</bean> | |
<bean name="sessionDataFactoryClasses" class="java.util.ArrayList" /> | |
</beans> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment