Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- This Source Code Form is subject to the terms of the Mozilla Public License,
- v. 2.0. If a copy of the MPL was not distributed with this file, You can
- obtain one at http://mozilla.org/MPL/2.0/. OpenMRS is also distributed under
- the terms of the Healthcare Disclaimer located at http://openmrs.org/license.
- Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
- graphic logo is a trademark of OpenMRS Inc.
- -->
- <!-- Beans to add to the current Application context definition -->
- <beans xmlns="http://www.springframework.org/schema/beans"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"
- xmlns:context="http://www.springframework.org/schema/context"
- xmlns:jee="http://www.springframework.org/schema/jee" xmlns:tx="http://www.springframework.org/schema/tx"
- xmlns:aop="http://www.springframework.org/schema/aop" 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/jee
- http://www.springframework.org/schema/jee/spring-jee-3.0.xsd
- http://www.springframework.org/schema/tx
- http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
- http://www.springframework.org/schema/aop
- http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
- http://www.springframework.org/schema/util
- http://www.springframework.org/schema/util/spring-util-3.0.xsd">
- <context:component-scan base-package="org.openmrs.module.chitscore" />
- <!-- Wraps CHITSService methods in DB transactions and OpenMRS interceptors,
- which set audit info like dateCreated, changedBy, etc.-->
- <bean id="chitscore.CHITSService"
- class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean"
- lazy-init="default" primary="false">
- <property name="transactionManager">
- <ref bean="transactionManager" />
- </property>
- <property name="target">
- <bean class="org.openmrs.module.chitscore.impl.CHITSServiceImpl">
- <property name="familyFolderDAO" ref="chitscore.HibernateFamilyFolderDAO" />
- <property name="householdInformationDAO" ref="chitscore.HibernateHouseholdInformationDAO" />
- <property name="patientQueueDAO" ref="chitscore.HibernatePatientQueueDAO" />
- <property name="templatesDAO" ref="chitscore.HibernateTemplatesDAO" />
- <property name="chitsConceptsDAO" ref="chitscore.HibernateCHITSConceptsDAO" />
- <property name="auditDAO" ref="chitscore.HibernateAuditDAO" />
- <property name="commodityDAO" ref="chitscore.HibernateCommodityDAO" />
- <property name="patientAppointmentDAO" ref="chitscore.HibernatePatientAppointmentDAO" />
- </bean>
- </property>
- <property name="preInterceptors">
- <ref bean="serviceInterceptors" />
- </property>
- <property name="transactionAttributeSource">
- <ref bean="transactionAttributeSource" />
- </property>
- </bean>
- <bean id="chitscore.CHITSPatientSearchService" class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
- <property name="transactionManager"><ref bean="transactionManager"/></property>
- <property name="target">
- <bean class="org.openmrs.module.chitscore.impl.CHITSPatientSearchServiceImpl">
- <property name="patientSearchDAO">
- <bean class="org.openmrs.module.chitscore.db.hibernate.HibernatePatientSearchDAO" />
- </property>
- <property name="femalePatientSearchDAO">
- <bean class="org.openmrs.module.chitscore.db.hibernate.HibernatePatientSearchDAO">
- <property name="gender"><value>F</value></property>
- </bean>
- </property>
- <property name="malePatientSearchDAO">
- <bean class="org.openmrs.module.chitscore.db.hibernate.HibernatePatientSearchDAO">
- <property name="gender"><value>M</value></property>
- </bean>
- </property>
- </bean>
- </property>
- <property name="preInterceptors">
- <ref bean="serviceInterceptors" />
- </property>
- <property name="transactionAttributeSource">
- <bean class="org.springframework.transaction.annotation.AnnotationTransactionAttributeSource"/>
- </property>
- </bean>
- <bean parent="serviceContext">
- <property name="moduleService">
- <list>
- <value>org.openmrs.module.chitscore.CHITSService</value>
- <ref bean="chitscore.CHITSService" />
- </list>
- </property>
- </bean>
- <bean parent="serviceContext">
- <property name="moduleService">
- <list>
- <value>org.openmrs.module.chitscore.CHITSPatientSearchService</value>
- <ref bean="chitscore.CHITSPatientSearchService" />
- </list>
- </property>
- </bean>
- <bean id="chitscore.PHIEService" class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
- <property name="transactionManager"><ref bean="transactionManager"/></property>
- <property name="target">
- <bean class="org.openmrs.module.chitscore.phie.PHIEServiceImpl">
- <property name="philhealthMemberRegistrationFormDAO">
- <bean class="org.openmrs.module.chitscore.phie.db.hibernate.HibernatePhilhealthMemberRegistrationFormDAO" />
- </property>
- </bean>
- </property>
- <property name="preInterceptors">
- <ref bean="serviceInterceptors" />
- </property>
- <property name="transactionAttributeSource">
- <bean class="org.springframework.transaction.annotation.AnnotationTransactionAttributeSource"/>
- </property>
- </bean>
- <bean parent="serviceContext">
- <property name="moduleService">
- <list>
- <value>org.openmrs.module.chitscore.phie.PHIEService</value>
- <ref bean="chitscore.PHIEService" />
- </list>
- </property>
- </bean>
- <bean id="multipartResolver"
- class="org.springframework.web.multipart.commons.CommonsMultipartResolver">
- <property name="maxUploadSize" value="100000" />
- <property name="uploadTempDir" ref="uploadDirResource" />
- </bean>
- <bean id="uploadDirResource"
- class="org.springframework.core.io.FileSystemResource">
- <constructor-arg>
- <value>/openmrs/images/</value>
- </constructor-arg>
- </bean>
- </beans>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement