// Advisor 인터페이스의 가장 일반적인 구현체 DefaultPointcutAdvisoradvisor=newDefaultPointcutAdvisor(newMyPointCut(), newTimeAdvice());
// Proxy Factory 에 적용할 Advisor 를 지정한다. proxyFactory.addAdvisor(advisor); ServiceInterfaceproxy= (ServiceInterface) proxyFactory.getProxy();
proxy.save(); proxy.find();
00:05:44.717 [Test worker] INFO hello.proxy.advisor.AdvisorTest - 포인트 컷 호출 method = save targetClass = class hello.proxy.common.service.ServiceImpl 00:05:44.720 [Test worker] INFO hello.proxy.advisor.AdvisorTest - 포인트 컷 결과 result = true 00:05:44.723 [Test worker] INFO hello.proxy.common.advice.TimeAdvice - TimeProxy 실행 00:05:44.723 [Test worker] INFO hello.proxy.common.service.ServiceImpl - save 호출 00:05:44.723 [Test worker] INFO hello.proxy.common.advice.TimeAdvice - TimeProxy 종료 resultTime = 0 00:05:44.723 [Test worker] INFO hello.proxy.advisor.AdvisorTest - 포인트 컷 호출 method = find targetClass = class hello.proxy.common.service.ServiceImpl 00:05:44.724 [Test worker] INFO hello.proxy.advisor.AdvisorTest - 포인트 컷 결과 result = false 00:05:44.724 [Test worker] INFO hello.proxy.common.service.ServiceImpl - find 호출