728x90
반응형
포인트컷은 어드바이스가 적용돼야할 메서드를 골라내는것
pointcut 정의
pointcut 정의
- <bean id="performancePointcut" class="org.springframework.aop.support.JdkRegexpMethodPointcut">
- <prorperty name="pattern" value=".*perform">
- </prorperty></bean>
- <bean id="audienceAdvisor" class="org.springframework.aop.support.DefaultPointcutAdvisor">
- <prorperty name="advice" ref="audienceAdvice">
- <prorperty name="pointcut" ref="performancePointcut">
- </prorperty></prorperty></bean>
- <bean id="audienceAdvisor" class="org.springframework.aop.support.RegexpMethodPointcutAdvisor">
- <prorperty name="advice" ref="audienceAdvice">
- <prorperty name="pointcut" ref=".*perform">
- </prorperty></prorperty></bean>
728x90
반응형
'Development > Java' 카테고리의 다른 글
[Spring In Action]aspect용 AutoProxy생성 (0) | 2011.09.08 |
---|---|
[Spring In Action]AspectJ 포인트컷 정의 (0) | 2011.09.07 |
[Spring In Action]4.1 AOP 용어 (0) | 2011.08.31 |
Exception 정보 제대로 처리하자.! (1) | 2011.07.21 |
[Spring In Action] 2.4 오토와이어링 (0) | 2011.07.19 |