java dynamic invocation1 Dynamic Invocation In JAVA (동적 메쏘드 호출) 자바에 이런 기능이 있다니 참으로 놀랍다. 특정 클래스에는 어떤메쏘드가 있으며 그에 따른 파라미터 타입이라던지 특정 메소드 호출까지 제어할 수있다. /// /// @brief This code will show how to use dynamic invocation in java. /// @author Dohyun Yun /// import java.lang.reflect.Method; public class test { public static void main(String[] args) throws Exception { Class testClassInfo = TestClass.class; Method[] methods = testClassInfo.getDeclaredMethods(); TestClass.. 2010. 1. 19. 이전 1 다음