Line | |
---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
---|
2 |
|
---|
3 |
<beans xmlns="http://www.springframework.org/schema/beans" |
---|
4 |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
---|
5 |
xmlns:aop="http://www.springframework.org/schema/aop" |
---|
6 |
xmlns:tx="http://www.springframework.org/schema/tx" |
---|
7 |
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd |
---|
8 |
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.0.xsd |
---|
9 |
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.0.xsd"> |
---|
10 |
|
---|
11 |
|
---|
12 |
<!-- ============================== BUSINESS OBJECT DEFINITIONS ======================= --> |
---|
13 |
|
---|
14 |
<bean id="kyuriBoard" class="org.springframework.samples.kyuriboard.domain.logic.KyuriBoardImpl"> |
---|
15 |
<property name="boardDao" ref="boardDao"/> |
---|
16 |
<property name="memoDao" ref="memoDao"/> |
---|
17 |
<property name="userDao" ref="userDao"/> |
---|
18 |
</bean> |
---|
19 |
|
---|
20 |
<!-- ============================== ASPECT CONFIGURATION ============================== --> |
---|
21 |
|
---|
22 |
<tx:advice id="txAdvice"> |
---|
23 |
<tx:attributes> |
---|
24 |
<tx:method name="insert*"/> |
---|
25 |
<tx:method name="update*"/> |
---|
26 |
<tx:method name="delete*"/> |
---|
27 |
<tx:method name="*" read-only="true"/> |
---|
28 |
</tx:attributes> |
---|
29 |
</tx:advice> |
---|
30 |
|
---|
31 |
<aop:config> |
---|
32 |
<aop:advisor pointcut="execution(* *..KyuriBoardFacade.*(..))" advice-ref="txAdvice"/> |
---|
33 |
</aop:config> |
---|
34 |
|
---|
35 |
</beans> |
---|