in src/main/java/org/apache/bsf/util/event/generator/AdapterClassLoader.java [102:148]
public synchronized Class getLoadedClass(final String name)
{
Class c = findLoadedClass(name);
if (c == null)
{
try
{
c = findSystemClass(name);
}
catch (final ClassNotFoundException e)
{
}
}
if (c == null)
{
c = findClass(name);
}
// rgf, 2008-07-04
if (c==null) // not found so far, try to use the current Thread's context class loader instead
{
final LocalThreadClassLoader ltcl=new LocalThreadClassLoader(Thread.currentThread().getContextClassLoader());
c = ltcl.findLoadedClass(name,'0');
if (c == null)
{
try
{
c = ltcl.findSystemClass(name,'0');
}
catch (final ClassNotFoundException e)
{
try
{
c = ltcl.findClass(name,'0');
}
catch (final ClassNotFoundException e1)
{}
}
}
}
return c;
}