4월, 2017의 게시물 표시

자바 리플렉션

자바 리플렉션- 구체적인 타입의 클래스를 알지 못해도 그 클래스의 메소드,타입,변수에 접근할 수 있도록 해주는 API 리플렉션을 쓰는 이미 쓰고있는 것들 JUnit  – uses reflection to parse @Test annotation to get the test methods and then invoke it. Spring  – dependency injection, read more at  Spring Dependency Injection Tomcat  web container to forward the request to correct module by parsing their web.xml files and request URI. Eclipse  auto completion of method names Struts Hibernate 리플렉션을 쓰면 안되는 상황 Poor Performance  – Since java reflection resolve the types dynamically, it involves processing like scanning the classpath to find the class to load, causing slow performance. Security Restrictions  – Reflection requires runtime permissions that might not be available for system running under security manager. This can cause you application to fail at runtime because of security manager. Security Issues  – Using reflection we can access part of code that we are not supposed to access, for exampl...

첫글

ㅎㅎㅎㅎㅎㅎㅎㅎㅎㅎㅎㅎㅎㅎㅎㅎㅎㅎㅎㅎㅎㅎㅎㅎ ㅁㄴㅇ ㅁㄴㅇ ㄴㅁㅇ ㄴㅁㅇ 자바리플렉션이란