1. PointCut
Weaving 을 적용시킬 특정 JoinPoint 를 지정하는 것
= 어떤 Core Concern 에 AOP 기술을 적용할 것인지 지정하는 것
2. PointCut 적용
3. NameMatchMethodPointcut
<bean id="classicPointCut" class="org.springframework.aop.support.NameMatchMethodPointcut">
<property name="mappedName" value="total"/>
</bean>
4. DefaultPointcutAdvisor
<bean id="classicBeforeAdvisor" class="org.springframework.aop.support.DefaultPointcutAdvisor">
<property name="advice" ref="logBeforeAdvice"/>
<property name="pointcut" ref="classicPointCut"/>
</bean>
5. NameMatchMethodPointcutAdvisor
// 하나의 메서드만을 지정
<bean id="classicBeforeAdvisor" class="org.springframework.aop.support.NameMatchMethodPointcutAdvisor">
<property name="advice" ref="logBeforeAdvice"/>
<property name="mappedName" value="total"/>
</bean>
// 여러 메서드 지정
<bean id="classicBeforeAdvisor" class="org.springframework.aop.support.NameMatchMethodPointcutAdvisor">
<property name="advice" ref="logBeforeAdvice"/>
<property name="mappedName">
<list>
<value>total</value>
<value>mean</value>
<list>
</property>
</bean>