@Test public void testInstanciationWithParams() { List<Object> params = new ArrayList<Object>(); params.add("myContent"); Object obj = ObjectFactory.createObject("java.lang.String", params); assertNotNull(obj); assertEquals(String.class, obj.getClass()); assertEquals(obj, "myContent"); }
public static Object createObject(String qualifiedName) { return createObject(qualifiedName, new ArrayList<>(), new ArrayList<>()); }
ObjectFactory { public static Object createObject(String qualifiedName) { return createObject(qualifiedName, new ArrayList<>(), new ArrayList<>()); } }
ObjectFactory { public static Object createObject(String qualifiedName) { return createObject(qualifiedName, new ArrayList<>(), new ArrayList<>()); } protected  ObjectFactory(); }
ObjectFactory { public static Object createObject(String qualifiedName) { return createObject(qualifiedName, new ArrayList<>(), new ArrayList<>()); } protected  ObjectFactory(); static Object createObject(String qualifiedName); static Object createObject(String qualifiedName, List<Object> params); static Object createObject(String qualifiedName,  List<Class<?>> paramTypes, List<Object> params); }
ObjectFactory { public static Object createObject(String qualifiedName) { return createObject(qualifiedName, new ArrayList<>(), new ArrayList<>()); } protected  ObjectFactory(); static Object createObject(String qualifiedName); static Object createObject(String qualifiedName, List<Object> params); static Object createObject(String qualifiedName,  List<Class<?>> paramTypes, List<Object> params);  }