org.apache.bval.jsr303.util
Class ClassHelper

java.lang.Object
  extended by org.apache.bval.jsr303.util.ClassHelper

public class ClassHelper
extends Object

Common operations on classes that do not require an AccessController.

Author:
Carlos Vara

Method Summary
static void fillFullClassHierarchyAsList(List<Class<?>> allClasses, Class<?> clazz)
          Fill the list with the full class/interface hierarchy of the given class.
static Class<?> getClass(String className)
          Deprecated. Will be removed for security reasons. Perform ClassUtils.getClass functions with Java 2 Security enabled.
static Class<?> getClass(String className, boolean initialize)
          Deprecated. Will be removed for security reasons. Perform ClassUtils.getClass functions with Java 2 Security enabled.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

fillFullClassHierarchyAsList

public static void fillFullClassHierarchyAsList(List<Class<?>> allClasses,
                                                Class<?> clazz)
Fill the list with the full class/interface hierarchy of the given class. List is ordered from the most to less specific.

Parameters:
allClasses - The current list of classes in the hierarchy.
clazz - The current class, root of the hierarchy to traverse.

getClass

@Deprecated
public static Class<?> getClass(String className)
                         throws ClassNotFoundException
Deprecated. Will be removed for security reasons. Perform ClassUtils.getClass functions with Java 2 Security enabled.

Throws:
ClassNotFoundException

getClass

@Deprecated
public static Class<?> getClass(String className,
                                           boolean initialize)
                         throws ClassNotFoundException
Deprecated. Will be removed for security reasons. Perform ClassUtils.getClass functions with Java 2 Security enabled.

Throws:
ClassNotFoundException


Copyright © 2010-2012 Apache Software Foundation. All Rights Reserved.