@@ -0,0 +1,472 @@
+package com.hsdc.dp.intf.util;%0A%0Apublic final class ObjectCreator %7B%0A%09public static %3CT%3E T createObject(String className) %7B%0A%09%09try %7B%0A%09%09%09@SuppressWarnings(%22unchecked%22)%0A%09%09%09Class%3CT%3E c = (Class%3CT%3E)Class.forName(className);%0A%09%09%09return createObject(c);%0A%09%09%7D catch (Exception e) %7B%0A%09%09%09throw new RuntimeException(e);%0A%09%09%7D%0A%09%7D%0A%09%0A%09private static %3CT%3E T createObject(Class%3CT%3E clazz) %7B%0A%09%09try %7B%0A%09%09%09return clazz.newInstance();%0A%09%09%7D catch (Exception e) %7B%0A%09%09%09throw new RuntimeException(e);%0A%09%09%7D%0A%09%7D%0A%7D%0A

Add Object Creator