java.lang.Object
com.sun.faces.facelets.util.ReflectionUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic Object
decorateInstance
(Class clazz, Class rootType, Object root) static Object
decorateInstance
(String className, Class rootType, Object root) static Class
protected static Class
forNamePrimitive
(String name) static <T> T
newInstance
(String name) protected static String
paramString
(Class<?>[] types) static Class[]
toTypeArray
(String[] s) Converts an array of Class names to Class typesstatic String[]
toTypeNameArray
(Class[] c) Converts an array of Class types to Class names
-
Method Details
-
forName
- Throws:
ClassNotFoundException
-
forNamePrimitive
-
newInstance
public static <T> T newInstance(String name) throws InstantiationException, IllegalAccessException, IllegalArgumentException, InvocationTargetException, NoSuchMethodException, SecurityException, ClassNotFoundException -
toTypeArray
Converts an array of Class names to Class types- Parameters:
s
- the array of class names.- Returns:
- the array of classes.
- Throws:
ClassNotFoundException
-
toTypeNameArray
-
paramString
-
decorateInstance
-
decorateInstance
-