Skip to content

Commit

Permalink
Added resultMessagesLoggingInterceptor & AOP setting in projectName-d…
Browse files Browse the repository at this point in the history
…omain.xml. #39
  • Loading branch information
kazuki43zoo committed Aug 30, 2014
1 parent 1f8520b commit 20944ab
Showing 1 changed file with 21 additions and 7 deletions.
28 changes: 21 additions & 7 deletions infra/common/META-INF/spring/projectName-domain.xml
Original file line number Diff line number Diff line change
@@ -1,12 +1,26 @@
<?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:tx="http://www.springframework.org/schema/tx"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
xmlns:aop="http://www.springframework.org/schema/aop" xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd">

<import resource="classpath:META-INF/spring/projectName-infra.xml" />

<context:component-scan base-package="xxxxxx.yyyyyy.zzzzzz.domain" />
<import resource="classpath:META-INF/spring/projectName-infra.xml"/>
<tx:annotation-driven/>

<tx:annotation-driven />

<!-- AOP. -->
<bean id="resultMessagesLoggingInterceptor"
class="org.terasoluna.gfw.common.exception.ResultMessagesLoggingInterceptor">
<property name="exceptionLogger" ref="exceptionLogger" />
</bean>
<aop:config>
<aop:advisor advice-ref="resultMessagesLoggingInterceptor"
pointcut="@within(org.springframework.stereotype.Service)" />
</aop:config>

</beans>

0 comments on commit 20944ab

Please sign in to comment.