Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
구현 기능
개발 코멘트
1. AOP를 통한 인가 구현
인가를 구현하며 선택에 대한 고민을 했습니다.
Spring Security 도입, 책임 연쇄 패턴 적용 등을 고민했지만 현재 수준에선 필요가 없다고 느꼈으며, AOP를 통해 구현하였습니다.
추후, 보다 복잡한 인가 로직이 요구될 때 위에서 언급한 방법들의 도입을 고려할 예정입니다.
2. AOP 구현 방식
AOP 구현에 다음 방식들을 고려했습니다.
위와 같은 방법을 사용할 시, 기존의 메소드들, 추후 개발될 메소드들을 모두 매개 변수 순서를 맞춰주어야 합니다.
현재 적용한 방법입니다. 여전히 매개 변수를 강제하진 않지만, 위 방법보다 유연한 메소드 시그니처를 지원합니다.