JBoss Reflection 2.2.1.SP1

org.jboss.reflect.plugins.bytecode
Class ClassLoaderFinder.LoadClass

java.lang.Object
  extended by org.jboss.reflect.plugins.bytecode.ClassLoaderFinder.LoadClass
All Implemented Interfaces:
ClassLoaderFinder
Enclosing interface:
ClassLoaderFinder

public static class ClassLoaderFinder.LoadClass
extends Object
implements ClassLoaderFinder

Singleton default implementation of ClassLoaderFinder suitable for use in complex classloading environments. It loads the class


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jboss.reflect.plugins.bytecode.ClassLoaderFinder
ClassLoaderFinder.Default, ClassLoaderFinder.LoadClass
 
Field Summary
static ClassLoaderFinder.LoadClass INSTANCE
           
 
Method Summary
 ClassLoader getLoaderForClass(ClassLoader initiating, String name)
          Gets the correct classloader to use to find a class
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static ClassLoaderFinder.LoadClass INSTANCE
Method Detail

getLoaderForClass

public ClassLoader getLoaderForClass(ClassLoader initiating,
                                     String name)
Description copied from interface: ClassLoaderFinder
Gets the correct classloader to use to find a class

Specified by:
getLoaderForClass in interface ClassLoaderFinder
Parameters:
initiating - the initiating classloader
name - the name of the class
Returns:
the classloader to use to load the class, or null if the class does not exist

JBoss Reflection 2.2.1.SP1

Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.