Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <!-- 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.dermatology" />
- <bean id="dermatology.BodyRegionService"
- class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
- <property name="transactionManager">
- <ref bean="transactionManager" />
- </property>
- <property name="target">
- <bean class="org.openmrs.module.dermatology.api.impl.BodyRegionServiceImpl">
- <property name="dao">
- <bean class="org.openmrs.module.dermatology.api.db.hibernate.HibernateBodyRegionDAO">
- <property name="sessionFactory">
- <ref bean="dbSessionFactory" />
- </property>
- </bean>
- </property>
- </bean>
- </property>
- <property name="preInterceptors">
- <ref bean="serviceInterceptors" />
- </property>
- <property name="transactionAttributeSource">
- <ref bean="transactionAttributeSource" />
- </property>
- </bean>
- <bean parent="serviceContext">
- <property name="moduleService">
- <list>
- <value>org.openmrs.module.dermatology.api.BodyRegionService</value>
- <ref local="dermatology.BodyRegionService"/>
- </list>
- </property>
- </bean>
- <bean id="dermatology.LesionTypeService"
- class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
- <property name="transactionManager">
- <ref bean="transactionManager" />
- </property>
- <property name="target">
- <bean class="org.openmrs.module.dermatology.api.impl.LesionTypeServiceImpl">
- <property name="dao">
- <bean class="org.openmrs.module.dermatology.api.db.hibernate.HibernateLesionTypeDAO">
- <property name="sessionFactory">
- <ref bean="dbSessionFactory" />
- </property>
- </bean>
- </property>
- </bean>
- </property>
- <property name="preInterceptors">
- <ref bean="serviceInterceptors" />
- </property>
- <property name="transactionAttributeSource">
- <ref bean="transactionAttributeSource" />
- </property>
- </bean>
- <bean parent="serviceContext">
- <property name="moduleService">
- <list>
- <value>org.openmrs.module.dermatology.api.LesionTypeService</value>
- <ref local="dermatology.LesionTypeService"/>
- </list>
- </property>
- </bean>
- <bean id="dermatology.SpecialityService"
- class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
- <property name="transactionManager">
- <ref bean="transactionManager" />
- </property>
- <property name="target">
- <bean class="org.openmrs.module.dermatology.api.impl.SpecialityServiceImpl">
- <property name="dao">
- <bean class="org.openmrs.module.dermatology.api.db.hibernate.HibernateSpecialityDAO">
- <property name="sessionFactory">
- <ref bean="dbSessionFactory" />
- </property>
- </bean>
- </property>
- </bean>
- </property>
- <property name="preInterceptors">
- <ref bean="serviceInterceptors" />
- </property>
- <property name="transactionAttributeSource">
- <ref bean="transactionAttributeSource" />
- </property>
- </bean>
- <bean parent="serviceContext">
- <property name="moduleService">
- <list>
- <value>org.openmrs.module.dermatology.api.SpecialityService</value>
- <ref local="dermatology.SpecialityService"/>
- </list>
- </property>
- </bean>
- </beans>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement