본문 바로가기
JAVA

[JAVA] Reflection 개념

by 김뚱 2019. 5. 22.

reflection : 반사

 

JVM에서 실행 중인 애플리케이션의 행위를 확인하고 변경하기 위해 제공하는 기능이다.

 

구체적인 클래스 타입을 알지 못하여도 해당 클래스의 메소드, 타입, 변수 등에 접근할 수 있도록 해주는 API이다.

 

성능 및 보안을 제한하는 단점이 있어 사용에 제한을 둬야 한다.

 

**참조**

 

https://docs.oracle.com/javase/tutorial/reflect/

 

Trail: The Reflection API (The Java™ Tutorials)

Uses of Reflection Reflection is commonly used by programs which require the ability to examine or modify the runtime behavior of applications running in the Java virtual machine. This is a relatively advanced feature and should be used only by developers

docs.oracle.com

 

https://gyrfalcon.tistory.com/entry/Java-Reflection

 

Java Reflection 개념 및 사용법

Java Reflection 정의 리플렉션이란 객체를 통해 클래스의 정보를 분석해 내는 프로그램 기법을 말한다. 투영, 반사 라는 사전적인 의미를 지니고 있다. 스프링을 공부하다가 보면 BeanFactory 라는 Spring Contai..

gyrfalcon.tistory.com

 

728x90
반응형

'JAVA' 카테고리의 다른 글

[JAVA] Gson JsonParser  (0) 2020.02.25

댓글