1 22 package org.jboss.aop.proxy; 23 24 import org.jboss.aop.InstanceAdvisor; 25 import org.jboss.util.id.GUID; 26 27 import java.io.ObjectStreamException ; 28 import java.io.Serializable ; 29 30 36 public class MarshalledInterfaceProxy implements Serializable 37 { 38 static final long serialVersionUID = -7939451715003985857L; 39 40 private Class [] interfaces; 41 private ProxyMixin[] mixins; 42 private InstanceAdvisor advisor; 43 private GUID guid; 44 45 protected MarshalledInterfaceProxy() 46 { 47 } 48 49 public MarshalledInterfaceProxy(GUID guid, Class [] intfs, ProxyMixin[] mixins, InstanceAdvisor advisor) 50 { 51 this.guid = guid; 52 this.advisor = advisor; 53 this.interfaces = intfs; 54 this.mixins = mixins; 55 } 56 57 public Object readResolve() throws ObjectStreamException 58 { 59 try 60 { 61 return ProxyFactory.createInterfaceProxy(guid, Thread.currentThread().getContextClassLoader(), interfaces, mixins, advisor); 62 } 63 catch (Exception e) 64 { 65 throw new RuntimeException (e); 66 } 67 } 68 } 69 | Popular Tags |