public class UnionClassLoader
extends java.lang.ClassLoader
Server
as the context class loader during deserialization in order to find
classes accessible from both the remote object's class loader and
the context class loader at the time the remote object was
exported.Constructor and Description |
---|
UnionClassLoader(java.lang.ClassLoader one,
java.lang.ClassLoader two)
Constructs a
ClassLoader that tries to load classes
from both of the given ClassLoader arguments. |
Modifier and Type | Method and Description |
---|---|
static UnionClassLoader |
get(java.lang.ClassLoader one,
java.lang.ClassLoader two)
Instantiates a new UnionClassLoader if necessory or returns a
previously instantiated one.
|
protected java.lang.Class |
loadClass(java.lang.String name,
boolean resolve) |
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
public UnionClassLoader(java.lang.ClassLoader one, java.lang.ClassLoader two)
ClassLoader
that tries to load classes
from both of the given ClassLoader
arguments.one
- the first ClassLoader
to checktwo
- the second ClassLoader
to checkpublic static UnionClassLoader get(java.lang.ClassLoader one, java.lang.ClassLoader two)
one
- the first ClassLoader
to load fromtwo
- the second ClassLoader
to load fromprotected java.lang.Class loadClass(java.lang.String name, boolean resolve) throws java.lang.ClassNotFoundException
loadClass
in class java.lang.ClassLoader
java.lang.ClassNotFoundException