Skip to content

아이템 65. 리플렉션보다는 인터페이스를 사용하라 #166

Answered by corock
coalong asked this question in 3. 과제
Discussion options

You must be logged in to vote

쉽지 않은 내용일 수 있는데 잘 정리하셨네요~ 잘 봤습니다.
저는 처음에 리플렉션을 극혐하는 입장이었는데, 웹 개발에서 단위 테스트를 작성할 때 ReflectionTestUtils 는 앞으로 적극적으로 사용하려고 합니다.
해당 클래스를 사용하면 Setter 사용을 막을 수 있거든요. 이와 반대로 ReflectionUtils 클래스는 아직 혐오하긴 합니다 :)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by coalong
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
9장 일반적인 프로그래밍 원칙 이펙티브 자바 9장 (일반적인 프로그래밍 원칙)
2 participants