Top Fields Constructors Methods
com.sun.faces.facelets.util

public Class ReflectionUtil

extends Object
Class Inheritance
Imports
com.sun.faces.config.ConfigurationException, .WebConfiguration, .WebConfiguration.WebContextInitParameter, com.sun.faces.util.ReflectionUtils, .Util, java.lang.reflect.Array, .Constructor, .InvocationTargetException, java.text.MessageFormat, java.util.Arrays

Field Summary

Modifier and TypeField and Description
private static final String[]
private static final Class<T>[]

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private static String
public static Object
decorateInstance(Class<T> clazz, Class<T> rootType, Object root)

public static Object
decorateInstance(String className, Class<T> rootType, Object root)

public static Class<T>
protected static Class<T>
private static boolean
private static Class<?>
loadClass(String className, Object fallback, Class<?> expectedType)

protected static final String
paramString(Class<T>[] types)

public static Class<T>[]

Returns:

the array of classes.
toTypeArray
(String[]
the array of class names.
s
)

Converts an array of Class names to Class types

public static String[]

Returns:

the array of class names.
toTypeNameArray
(Class<T>[]
the array of classes.
c
)

Converts an array of Class types to Class names

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

PRIMITIVE_NAMESback to summary
private static final String[] PRIMITIVE_NAMES
PRIMITIVESback to summary
private static final Class<T>[] PRIMITIVES

Constructor Detail

ReflectionUtilback to summary
private ReflectionUtil()

Method Detail

buildMessageback to summary
private static String buildMessage(String cause)
decorateInstanceback to summary
public static Object decorateInstance(Class<T> clazz, Class<T> rootType, Object root)
decorateInstanceback to summary
public static Object decorateInstance(String className, Class<T> rootType, Object root)
forNameback to summary
public static Class<T> forName(String name) throws ClassNotFoundException
forNamePrimitiveback to summary
protected static Class<T> forNamePrimitive(String name)
isDevModeEnabledback to summary
private static boolean isDevModeEnabled()
loadClassback to summary
private static Class<?> loadClass(String className, Object fallback, Class<?> expectedType) throws ClassNotFoundException
paramStringback to summary
protected static final String paramString(Class<T>[] types)
toTypeArrayback to summary
public static Class<T>[] toTypeArray(String[] s) throws ClassNotFoundException

Converts an array of Class names to Class types

Parameters
s:String[]

the array of class names.

Returns:Class<T>[]

the array of classes.

toTypeNameArrayback to summary
public static String[] toTypeNameArray(Class<T>[] c)

Converts an array of Class types to Class names

Parameters
c:Class<T>[]

the array of classes.

Returns:String[]

the array of class names.