net.sourceforge.jeuclid.elements.support
Class ClassLoaderSupport

java.lang.Object
  extended by net.sourceforge.jeuclid.elements.support.ClassLoaderSupport

public final class ClassLoaderSupport
extends Object

Support utilities for classloading.

Version:
$Revision: 88b901bf20fb $

Constructor Summary
protected ClassLoaderSupport()
          Default Constructor.
 
Method Summary
static ClassLoaderSupport getInstance()
          accessor for singleton instance.
 Class<?> loadClass(String className)
          Try to load the given lass from the current context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassLoaderSupport

protected ClassLoaderSupport()
Default Constructor.

Method Detail

getInstance

public static ClassLoaderSupport getInstance()
accessor for singleton instance.

Returns:
an instance of this class.

loadClass

public Class<?> loadClass(String className)
                   throws ClassNotFoundException
Try to load the given lass from the current context.

Parameters:
className - name of the class to load
Returns:
a Class object for the given class if possible.
Throws:
ClassNotFoundException - if the class could not be found.
See Also:
ClassLoader.loadClass(String)


Copyright © 2002-2010 The JEuclid project. All Rights Reserved.