Package com.sun.faces.facelets.util
Class ReflectionUtil
- java.lang.Object
-
- com.sun.faces.facelets.util.ReflectionUtil
-
public class ReflectionUtil extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Object
decorateInstance(Class clazz, Class rootType, Object root)
static Object
decorateInstance(String className, Class rootType, Object root)
static Class
forName(String name)
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 Detail
-
forName
public static Class forName(String name) throws ClassNotFoundException
- Throws:
ClassNotFoundException
-
newInstance
public static <T> T newInstance(String name) throws InstantiationException, IllegalAccessException, IllegalArgumentException, InvocationTargetException, NoSuchMethodException, SecurityException, ClassNotFoundException
-
toTypeArray
public static Class[] toTypeArray(String[] s) throws ClassNotFoundException
Converts an array of Class names to Class types- Parameters:
s
- the array of class names.- Returns:
- the array of classes.
- Throws:
ClassNotFoundException
-
toTypeNameArray
public static String[] toTypeNameArray(Class[] c)
Converts an array of Class types to Class names- Parameters:
c
- the array of classes.- Returns:
- the array of class names.
-
-