1 25 26 package org.objectweb.easybeans.util.marshalling; 27 28 import java.io.IOException ; 29 import java.io.InputStream ; 30 import java.io.ObjectInputStream ; 31 import java.io.ObjectStreamClass ; 32 33 37 public class CtxClassLoaderObjectInputStream extends ObjectInputStream { 38 39 44 public CtxClassLoaderObjectInputStream(final InputStream inputStream) throws IOException { 45 super(inputStream); 46 } 47 48 57 @Override 58 protected Class <?> resolveClass(final ObjectStreamClass desc) 59 throws IOException , ClassNotFoundException { 60 return Thread.currentThread().getContextClassLoader().loadClass(desc.getName()); 61 } 62 } 63 | Popular Tags |