dearbeany
[AOP] 프록시패턴 본문
프록시패턴의 구조
- 프록시클래스(PersonProxy)가 어떤 인터페이스(Person)를 implements함과 동시에 해당 타입(Person p)을 멤버로 가지고 있음.
- implements를 함으로써 구현하는 함수(doSomething)는 해당타입의 같은 함수를 호출한다. p.doSomething
'Spring' 카테고리의 다른 글
[MyBatis] MyBatis와 Java 초기세팅 (Mapper, typeAlias, $과 #의 차이) (0) | 2022.10.20 |
---|---|
[Spring] SpringMVC 요청처리흐름 | 파일업로드와 다운로드 실습 (0) | 2022.10.19 |
[Spring] Spring DI 종합실습1~3. JDBC 를 Spring 프로젝트로 바꾸기 | AOP (0) | 2022.10.12 |
[Spring] 의존성주입(DI)와 제어역행(IoC) (0) | 2022.10.11 |
[Java] Template Method Pattern | Strategy Pattern (0) | 2022.10.11 |