2011년 8월 24일 수요일
함수명파라미터, 인터셉터, FLEX 설정 셋팅-1(context-aspect.xml)
<?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:aop="http://www.springframework.org/schema/aop"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-2.5.xsd">
<!-- Logging Aspect -->
<bean id="methodLoggingAspect"
class="com.sds.secframework.common.aspect.LoggingAspect" />
<aop:config>
<aop:pointcut id="loggingMethod" expression="execution(* com.sds.secframework..*ServiceImpl.*(..))" />
<aop:aspect ref="methodLoggingAspect">
<aop:before method="beforeLogging" pointcut-ref="loggingMethod"/>
</aop:aspect>
</aop:config>
<!--
<bean id="exceptionTransfer"
class="com.sds.secframework.common.aspect.ExceptionTransfer" />
<aop:config>
<aop:pointcut id="serviceMethod" expression="execution(* com.sds.secframework..*ServiceImpl.*(..))" />
<aop:aspect ref="exceptionTransfer">
<aop:after-throwing throwing="exception"
pointcut-ref="serviceMethod" method="transfer" />
</aop:aspect>
</aop:config>
-->
<bean id="exceptionTransfer"
class="com.sds.secframework.common.aspect.ExceptionTransfer" />
<aop:config>
<aop:pointcut id="serviceMethod" expression="execution(* com.sds.secframework..*Service*.*(..))" />
<aop:aspect ref="exceptionTransfer">
<aop:after-throwing throwing="exception"
pointcut-ref="serviceMethod" method="transfer" />
</aop:aspect>
</aop:config>
</beans>
피드 구독하기:
댓글 (Atom)
댓글 없음:
댓글 쓰기