Class<?> componentTypeClass = classForName(componentType); return Array.newInstance(componentTypeClass, 0).getClass(); return classForName(type);
/** * Same as {@link #classForName(String)}, but throws a RuntimeException (FacesException) instead of a * ClassNotFoundException. * * @return the corresponding Class * @throws NullPointerException * if type is null * @throws FacesException * if class not found */ public static Class<?> simpleClassForName(String type) { try { return classForName(type); } catch (ClassNotFoundException e) { log.log(Level.SEVERE, "Class " + type + " not found", e); throw new FacesException(e); } }