public static void main(String[] args) {
TestInterface TestInterface = (TestInterface) createInstance("cn.myapps.runtime.report.service.TestInterfaceImp");
String abc = TestInterface.aa();
System.out.println("a");
}
public static Object createInstance(String className){
try {
Class clz = Class.forName(className);
Object obj = clz.newInstance();
return obj;
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return null;
}