Getter, Setter와 리플렉션
Best way of invoking getter by reflection I need to get the value of a field with a specific annotation, So with reflection I am able to get this Field Object. The problem is that this field will be always private though I know in advance it stackoverflow.com 자바로 클래스를 작성하다보면, 가장 많이 하는 것 중에 하나가 데이터베이스를 접근 할 때 만드는 객체 클래스가 아닌가 합니다. 이럴때는 보통 get,set 메서드를 사용하고 클래스내의 멤버들 즉, 데이터는 은폐하게 만드는 것이 보통 일반적인 경우 ..
2024.02.02