如何以编程方式编译和实例化Java类?
Properties foo = new Properties();
foo.load(new FileInputStream(new File("ClassName.properties")));
String class_name = foo.getProperty("class","DefaultClass");
//IDynamicLoad newClass = Class.forName(class_name).newInstance();
凤凰求蛊
随时随地看视频慕课网APP
相关分类