volosied commented on code in PR #299:
URL: https://github.com/apache/myfaces/pull/299#discussion_r961236383
##########
impl/src/main/java/org/apache/myfaces/util/lang/ClassUtils.java:
##########
@@ -185,6 +189,99 @@ public static <T> T wrapBackwardCompatible(Class<T>
interfaceClass, Class<? exte
return current;
}
+ /**
+ * Tries a Class.loadClass with the context class loader of the current
thread first and automatically falls back to
+ * the ClassUtils class loader (i.e. the loader of the myfaces.jar lib) if
necessary.
+ *
+ * @param type
+ * fully qualified name of a non-primitive non-array class
+ * @return the corresponding Class
+ * @throws NullPointerException
+ * if type is null
+ * @throws ClassNotFoundException
+ */
+ public static <T> Class<T> classForName(String type) throws
ClassNotFoundException
Review Comment:
Would you want to add similar comments as in 4.0?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]