de.hunsicker.util
Class Helper

java.lang.Object
  |
  +--de.hunsicker.util.Helper

public final class Helper
extends java.lang.Object

A few asorted helper routines.

Version:
$Revision: 1.3 $
Author:
$author$

Method Summary
static java.lang.Class loadClass(java.lang.String name, java.lang.Object o)
          Loads the class with the specified name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

loadClass

public static java.lang.Class loadClass(java.lang.String name,
                                        java.lang.Object o)
                                 throws java.lang.ClassNotFoundException
Loads the class with the specified name. This method first attempts to load the class with the current context classloader and only if the search failed, it tries to load the class with the class loader of the given object.

Parameters:
name - the name of the class.
o - the object which classloader should be used.
Returns:
the result Class object.
Throws:
java.lang.ClassNotFoundException - if the class was not found.


Copyright © 1997-2005 Jalopy. All Rights Reserved.