Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
back-end:spring [2022/06/19 17:40] – [Pointcut Designators] 내용 추가 ledyxback-end:spring [2024/10/14 01:35] (current) – [Lifecycle Callbacks] ledyx
Line 65: Line 65:
 </sxh> </sxh>
  
-  * 메서드를 구현하고 @PostConstruct, @PostDestroy 사용. (Java 표준) => 추천!+  * 메서드를 구현하고 @PostConstruct, @PreDestroy 사용. (Java 표준) => 추천!
  
  
Line 99: Line 99:
         client-- request -->ProxyFactory         client-- request -->ProxyFactory
         ProxyFactory-- Proxy 대상 객체가 Interface를 구현 O -->p1[JDK dynamic proxy]         ProxyFactory-- Proxy 대상 객체가 Interface를 구현 O -->p1[JDK dynamic proxy]
-        ProxyFactory-- Proxy 대상 객체가 Interface를 구현 X -->p2[CGLIB proxy]+        ProxyFactory-- Proxy 대상 객체가 Interface를 구현 X<br>Target Class를 상속 -->p2[CGLIB proxy]
         p1-- "call" -->a["Advice\n(추상화)"]         p1-- "call" -->a["Advice\n(추상화)"]
         p2-- "call" -->a["Advice\n(추상화)"]         p2-- "call" -->a["Advice\n(추상화)"]
Line 168: Line 168:
   * within : 특정 Type에 join points 적용.   * within : 특정 Type에 join points 적용.
     * 부모 타입 불가능. 정확히 맞아야 한다.     * 부모 타입 불가능. 정확히 맞아야 한다.
-  * target : target 객체(Spring AOP Porxy가 적용되는 실제 객체)를 대상으로 하는 join points 적용+  * target : target 객체(Spring AOP Porxy가 적용되는 __실제 객체__)를 대상으로 하는 join points 적용 
 +    * 부모 타입 가능. 
 +  * this : Spring 빈 객체(Spring AOP __Proxy__)를 대상
     * 부모 타입 가능.     * 부모 타입 가능.
  
   * args : 인자가 주어진 타입의 인스턴스 한정   * args : 인자가 주어진 타입의 인스턴스 한정
     * 부모 타입 가능     * 부모 타입 가능
-  * this : Spring 빈 객체(Spring AOP Proxy)를 대상+
  
   * @target : Annotation이 있는 Type에서 부모 타입을 허용하여 모든 Method에 join points 적용   * @target : Annotation이 있는 Type에서 부모 타입을 허용하여 모든 Method에 join points 적용
back-end/spring.1655656835.txt.gz · Last modified: 2022/06/19 17:40 by ledyx