Loading...
Spring Framework Reference Documentation 7.0.2의 The Advisor API in Spring의 한국어 번역본입니다.
아래의 경우에 피드백에서 신고해주신다면 반영하겠습니다.
감사합니다 :)
Spring에서 Advisor는 pointcut expression과 연관된 단일 advice 객체만을 포함하는 aspect입니다.
introduction의 특수한 경우를 제외하고, 어떤 advisor든지 어떤 advice와도 함께 사용할 수 있습니다.
org.springframework.aop.support.DefaultPointcutAdvisor는 가장 일반적으로 사용되는 advisor 클래스입니다.
이것은 MethodInterceptor, BeforeAdvice, 또는 ThrowsAdvice와 함께 사용할 수 있습니다.
Spring에서는 동일한 AOP 프록시 안에서 advisor 타입과 advice 타입을 섞어서 사용하는 것이 가능합니다. 예를 들어, 하나의 프록시 설정에서 interception around advice, throws advice, before advice를 함께 사용할 수 있습니다.
Spring은 필요한 interceptor 체인을 자동으로 생성합니다.
Advice API in Spring
Using the ProxyFactoryBean to Create AOP Proxies