Home » tiles-2.2.1-src » org.apache.tiles.reflect » [javadoc | source]
org.apache.tiles.reflect
public final class: ClassUtil [javadoc | source]
java.lang.Object
   org.apache.tiles.reflect.ClassUtil
Utilities to work with dynamic class loading and instantiation.
Method from org.apache.tiles.reflect.ClassUtil Summary:
collectBeanInfo,   getClass,   getForcedAccessibleMethod,   instantiate,   instantiate,   invokeMethod
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.tiles.reflect.ClassUtil Detail:
 public static  void collectBeanInfo(Class<?> clazz,
    Map<String, PropertyDescriptor> name2descriptor) 
    Collects bean infos from a class and filling a list.
 public static Class<? extends T> getClass(String className,
    Class<T> baseClass) throws ClassNotFoundException 
    Returns the class and casts it to the correct subclass.
    It tries to use the thread's current classloader first and, if it does not succeed, uses the classloader of ClassUtil.
 public static Method getForcedAccessibleMethod(Class<?> clazz,
    String methodName,
    Class<?> parameterTypes) 
    Gets a method and forces it to be accessible, even if it is not.
 public static Object instantiate(String className) 
    Returns an instance of the given class name, by calling the default constructor.
 public static Object instantiate(String className,
    boolean returnNull) 
    Returns an instance of the given class name, by calling the default constructor.
 public static Object invokeMethod(Object obj,
    Method method,
    Object args) 
    Invokes a method, masking with a runtime exception all the exceptions.