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 | 29 | 30 | 31 |
Tags
- SystemCall
- spring-data-jpa
- hiberbate
- @Header
- AOP
- 문자열 리터럴
- task_struct
- ReflectUtils
- FunctionalInterface
- 롬복주의점
- none이미지
- Thread Library
- Process
- 함수형 인터페이스
- functional interface
- 쓰레드 라이브러리
- python-socketio
- strict stubbing
- django-crontab
- Thread Multiplexing
- sql-mappler
- rainbow table
- custom annotation
- 도커
- Spring
- 프로세스
- 운영체제
- java.util.function
- 문자열 불변성
- OS
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