Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- 쓰레드 라이브러리
- Spring
- rainbow table
- hiberbate
- python-socketio
- SystemCall
- 도커
- ReflectUtils
- Thread Multiplexing
- django-crontab
- Thread Library
- 롬복주의점
- java.util.function
- functional interface
- strict stubbing
- OS
- spring-data-jpa
- sql-mappler
- @Header
- 문자열 불변성
- 문자열 리터럴
- custom annotation
- 프로세스
- Process
- none이미지
- 운영체제
- FunctionalInterface
- AOP
- task_struct
- 함수형 인터페이스
Archives
- Today
- Total
목록ReflectUtils (1)
JH's Develog
[Spring] ReflectUtils로 클래스 멤버에 접근하기 + 테스트 코드 리팩토링에 적용
ReflectUtils란? ReflectUtils는 Spring에서 제공하는 유틸리티 클래스이며, Java Bean 형식의 클래스에 대해서 자바의 Reflection API를 쉽게 사용할 수 있게 도와줍니다. ReflectUtils를 사용하면 자바의 Reflection API를 직접 사용하지 않고도 Java Bean 형식 클래스 멤버의 이름, 값에 손쉽게 접근할 수 있습니다. getConstructor(Class type, Class[] parameterTypes) 메서드를 통해 Constructor 객체를 얻어와서 생성자에 접근하거나, getBeanProperties(), getBeanGetters(), getBeanSetters() 중 하나를 사용해서 해당 객체의 모든 프로퍼티에 대한 Property..
Spring
2022. 6. 1. 19:05