JBoss Reflection 2.2.1.SP1

org.jboss.reflect.plugins.bytecode
Interface ClassLoaderFinder

All Known Implementing Classes:
CachingLoadClassClassLoaderFinder, ClassLoaderFinder.Default, ClassLoaderFinder.LoadClass

public interface ClassLoaderFinder

Used internally to determine the correct classloader for a class.

Version:
$Revision: 1.1 $
Author:
Kabir Khan

Nested Class Summary
static class ClassLoaderFinder.Default
          Singleton default implementation of ClassLoaderFinder suitable for use in simple/flat classloading environments
static class ClassLoaderFinder.LoadClass
          Singleton default implementation of ClassLoaderFinder suitable for use in complex classloading environments.
 
Method Summary
 ClassLoader getLoaderForClass(ClassLoader initiating, String name)
          Gets the correct classloader to use to find a class
 

Method Detail

getLoaderForClass

ClassLoader getLoaderForClass(ClassLoader initiating,
                              String name)
Gets the correct classloader to use to find a class

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.