AOP(Aspect Oriented Programming)
관점지향 프로그래밍
핵심관심모듈과 공통관심모듈로 나눠,
중복적으로 사용되는 공통관심모듈을 별도의 클래스로 만들어 핵심관심모듈에 애스펙트를 위빙하는
방법으로 AOP를 구현한다.
AOP 용어
- Target: 핵심클래스
- Advice: Target에 제공할 공통기능(Aspect)
- Join Point: 어드바이스가 적용될 메서드
- PointCut: 조인포인트로 지정된 메서드를 선정
- Weaving: 어드바이스를 포인트컷으로 삽입하는 과정
- Advisor: Advice + PointCut
- Aspect: 1개이상의 어드바이저
- Proxy: AOP를 지원하는 객체
'Spring' 카테고리의 다른 글
[Spring]스프링 command객체 (0) | 2021.04.15 |
---|---|
[Spring]어노테이션)@Controller,@Repository,@Service,@Component (0) | 2021.04.14 |
[Spring]component-scan, annotation-config 차이점 (0) | 2021.04.08 |
에러) The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path (0) | 2021.04.08 |
[Spring]Mybatis 개념, 특징(+jdbc) (0) | 2021.04.05 |