@Test public void testNewInstance() throws Exception { TestBean bean = ReflectUtils.newInstance(TestBean.class); assertNotNull(bean); bean = ReflectUtils.newInstance(TestBean.class, "username", "password", "driver", "dialect", null); assertNotNull(bean); }
public static <T> T newInstance(Class<T> clazz, Object... args) throws Exception { return ConstructorUtils.invokeConstructor(clazz, args); }
ReflectUtils { public static <T> T newInstance(Class<T> clazz, Object... args) throws Exception { return ConstructorUtils.invokeConstructor(clazz, args); } }
ReflectUtils { public static <T> T newInstance(Class<T> clazz, Object... args) throws Exception { return ConstructorUtils.invokeConstructor(clazz, args); }  }
ReflectUtils { public static <T> T newInstance(Class<T> clazz, Object... args) throws Exception { return ConstructorUtils.invokeConstructor(clazz, args); }  static Object parseObject(Class tClass, String fieldValue); static Number parseNumber(Object o); static T newInstance(Class<T> clazz, Object... args); static String getString(Field field, Object object); static T newInstance(Class<T> c); static Optional<T> newInstance(String className, Object... args); }
ReflectUtils { public static <T> T newInstance(Class<T> clazz, Object... args) throws Exception { return ConstructorUtils.invokeConstructor(clazz, args); }  static Object parseObject(Class tClass, String fieldValue); static Number parseNumber(Object o); static T newInstance(Class<T> clazz, Object... args); static String getString(Field field, Object object); static T newInstance(Class<T> c); static Optional<T> newInstance(String className, Object... args);  }