1 28 29 package com.caucho.ejb.protocol; 30 31 import javax.ejb.HomeHandle ; 32 import java.io.ObjectStreamException ; 33 import java.io.Serializable ; 34 35 38 public class HomeSkeletonWrapper implements Serializable { 39 protected HomeHandle handle; 40 protected String localId; 41 42 45 public HomeSkeletonWrapper() 46 { 47 } 48 49 54 public HomeSkeletonWrapper(HomeHandle handle) 55 { 56 this.handle = handle; 57 } 58 59 64 public HomeSkeletonWrapper(String localId) 65 { 66 this.localId = localId; 67 } 68 69 72 public Object readResolve() 73 throws ObjectStreamException 74 { 75 92 return null; 93 } 94 95 static class ObjectExceptionWrapper extends ObjectStreamException { 96 ObjectExceptionWrapper(String msg) 97 { 98 super(msg); 99 } 100 101 ObjectExceptionWrapper(Exception e) 102 { 103 super(String.valueOf(e)); 104 } 105 } 106 } 107 108 109 | Popular Tags |