반응형 오토프록싱1 [Spring In Action]@AspectJ 이용한 오토프록싱 @Aspect // aspect 선언public class Audience { @Pointcut("execution(* *.perform(..))") // pointcut 정의 public void performance(){} @Before("performance()") public void takeSeats(){ } @AfterReturning("performance()") public void applaud(){ } @AfterThrowing("performance()") public void demandRefund(){ }}@AspectJ 기반의 빈을 애스펙트로 변환하는 방법을 알고 있는 오토프록시 빈 선언 AnnotationAwareAspectJAutoProxyCreator -> 이름이 길다 -_.. 2011. 9. 9. 이전 1 다음 728x90 반응형