-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AOP #1
Labels
documentation
Improvements or additions to documentation
Comments
mic050r
added a commit
that referenced
this issue
Oct 2, 2024
- resource > config.xml - Main > ClassPathXmlApplicationContext - pom.xml
mic050r
added a commit
that referenced
this issue
Oct 2, 2024
- 타겟 클래스 bean 등록 - Aspect bean 등록 후 - AOP 설정에 충고 등록
mic050r
added a commit
that referenced
this issue
Oct 2, 2024
- <aop:pointcut>: 포인트컷을 정의하기 위한 태그 - id="point": 이 포인트컷의 ID. 나중에 Advice에서 참조할 수 있도록 식별자 역할을 한다. - expression="execution(* org.example.bean.TargetClass.*(..))": 어떤 메서드를 대상으로 포인트컷을 적용할지 명시한다.
mic050r
added a commit
that referenced
this issue
Oct 2, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
AOP 용어
join point
: 관심사가 될 가능성이 있는 메서드들pointcut
: join point중 실제 관심사advice
: pointcut에 적용되는 충고target class
: advice가 적용되는 클래스aspect
: pointcut+advice를 합쳐놓은 것advisor
: advice를 모아놓은 곳primary concern(핵심관심)
:꼭 실행되어야 할 기능들cross cutting concern(횡단관심)
: 충고필요라이브러리 :
aspectjweaver
,aspectjrt
충고 삽입시점 :
before
,after
,around
,after-returning
,after-throwing
Execution명시자
public
만 지원된다.*
: 하나의 모든 것을 의미한다...
: 개수 상관없이 모든 것을 의미한다.1. Join Point (관심사가 될 가능성이 있는 메서드들)
2. Pointcut (Join Point 중 실제 관심사)
3. Advice (Pointcut에 적용되는 충고)
4. Target Class (Advice가 적용되는 클래스)
5. Aspect (Pointcut + Advice를 합쳐놓은 것)
6. Advisor (Advice를 모아놓은 곳)
7. Primary Concern (핵심 관심)
8. Cross-Cutting Concern (횡단 관심사)
요약하면:
The text was updated successfully, but these errors were encountered: