Assembla home | Assembla project page
 

root/notify/trunk/src/test/spring/context/applicationContext.xml

Revision 251, 1.8 kB (checked in by restamon, 10 months ago)

DAO refactoring

Line 
1 <?xml version="1.0" encoding="UTF-8"?>
2 <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3        xmlns:aop="http://www.springframework.org/schema/aop" xmlns:context="http://www.springframework.org/schema/context"
4        xmlns:tx="http://www.springframework.org/schema/tx"
5        xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
6             http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd
7             http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
8             http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd">
9
10     <!-- Configurer that replaces ${...} placeholders with values from a properties file -->
11     <!-- (in this case, JDBC-related settings for the dataSource definition below) -->
12     <context:property-placeholder location="classpath:jdbc.properties"/>
13    
14     <!-- Enable @Transactional support -->
15     <tx:annotation-driven/>
16    
17     <!-- Enable @AspectJ support -->
18     <aop:aspectj-autoproxy/>
19    
20     <aop:config>
21         <aop:advisor id="managerTx" advice-ref="txAdvice" pointcut="execution(* *..manager.*Manager.*(..))"/>
22     </aop:config>
23    
24     <tx:advice id="txAdvice">
25         <tx:attributes>
26             <tx:method name="get*" read-only="true"/>
27             <tx:method name="*"/>
28         </tx:attributes>
29     </tx:advice>
30
31     <bean id="requestForApprovalManager" class="org.restafarian.approval.manager.impl.RequestForApprovalManagerImpl">
32         <property name="requestForApprovalDao" ref="requestForApprovalDao"/>
33     </bean>
34
35 </beans>
Note: See TracBrowser for help on using the browser.