org.displaytag.util
Class ReflectHelper

java.lang.Object
  extended by org.displaytag.util.ReflectHelper

public final class ReflectHelper
extends java.lang.Object

Utility method for reflection.

Version:
$Revision: 1081 $ ($Author: fgiust $)
Author:
Fabrizio Giustina

Method Summary
static java.lang.Class classForName(java.lang.String className)
          Tries to load a class with more classloaders.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

classForName

public static java.lang.Class classForName(java.lang.String className)
                                    throws java.lang.ClassNotFoundException
Tries to load a class with more classloaders. Can be useful in J2EE applications if jar is loaded from a different classloader than user classes. If class is not found using the standard classloader, tries whit the thread classloader.

Parameters:
className - class name
Returns:
Class loaded class
Throws:
java.lang.ClassNotFoundException - if none of the ClassLoaders is able to found the reuested class


Copyright © 2002-2007 the Displaytag team. All Rights Reserved.