File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ EJB에는 다음 3가지 종류가 있다.
1616
1717Aspect-Oriented Programming의 약자이다. 흩어진 Aspect들을 모아서 모듈화 하는 기법이다.
1818서로 다른 클래스라고 하더라도 비슷한 기능을 하는 부분(ex 비슷한 메서드, 비슷한 코드)이있다. 이 부분을 Concern이라고 한다.(아래 색칠 되어 있는 부분)
19+
1920<img width =" 484 " alt =" 1 " src =" https://media.vlpt.us/post-images/max9106/c14f27a0-42b7-11ea-bb49-6994a406b987/-2020-01-30-1.51.46.png " >
2021
2122이 때 만약 노란색 기능을 수정하여야하면, 각각 클래스의 노란색 기능을 수정해주어야 하기 때문에, 유지 보수 면에서 불리하다.
@@ -25,6 +26,7 @@ Aspect-Oriented Programming의 약자이다. 흩어진 Aspect들을 모아서
2526흩어진 기능들을 모을 때 사용하는 것이 Aspect이다. 각각 Concern 별로 Aspect를 만들어주고, 어느 클래스에서 사용하는 지 입력해주는 방식이다.
2627
2728아래의 그림이 Aspect로 모듈화 한 것을 보여주는 것이다.
29+
2830<img width =" 484 " alt =" 1 " src =" https://media.vlpt.us/post-images/max9106/659b21f0-42b9-11ea-b8a8-c52882abed1f/-2020-01-30-2.03.31.png " >
2931
3032각 모듈에는 Advice와 Pointcut이 들어있다.
You can’t perform that action at this time.
0 commit comments