1 17 package org.apache.geronimo.kernel; 18 19 import java.io.IOException ; 20 import java.io.Serializable ; 21 22 25 public class ClassLoaderReference extends ClassLoader implements Serializable { 26 private ClassLoader classloader; 27 28 public ClassLoaderReference(ClassLoader parent) { 29 super(parent); 30 } 31 32 private void readObject(java.io.ObjectInputStream in) throws IOException , ClassNotFoundException { 33 in.defaultReadObject(); 34 ObjectInputStreamExt objectInputStreamExt = (ObjectInputStreamExt)in; 35 classloader = objectInputStreamExt.getClassloader(); 36 } 37 38 private Object readResolve() { 39 return classloader; 40 } 41 } 42 | Popular Tags |