org.glassfish.pfl.dynamic.copyobject.spi
Class LibraryClassLoader

java.lang.Object
  extended by org.glassfish.pfl.dynamic.copyobject.spi.LibraryClassLoader

public class LibraryClassLoader
extends Object

Based on feedback from bug report 4452016, all class loading in the ORB is isolated here. It is acceptable to use Class.forName only when one is certain that the desired class should come from the core JDK.

Note that this class must not depend on generated log wrappers!


Constructor Summary
LibraryClassLoader()
           
 
Method Summary
static ClassLoader getClassLoader()
           
static Class<?> loadClass(String className)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LibraryClassLoader

public LibraryClassLoader()
Method Detail

loadClass

public static Class<?> loadClass(String className)
                          throws ClassNotFoundException
Throws:
ClassNotFoundException

getClassLoader

public static ClassLoader getClassLoader()


Copyright © 2013 Oracle. All Rights Reserved.