1 22 package org.jboss.aop.proxy.container; 23 24 import java.io.ObjectStreamException ; 25 import java.io.Serializable ; 26 27 import org.jboss.aop.AspectManager; 28 import org.jboss.aop.InstanceAdvisor; 29 import org.jboss.aop.proxy.ProxyMixin; 30 31 36 public class MarshalledProxy implements Serializable 37 { 38 private ContainerProxyCacheKey key; 39 private InstanceAdvisor instanceAdvisor; 40 41 public MarshalledProxy() 42 { 43 } 44 45 public MarshalledProxy(ContainerProxyCacheKey key, InstanceAdvisor instanceAdvisor) 46 { 47 this.key = key; 48 this.instanceAdvisor = instanceAdvisor; 49 } 50 51 public Object readResolve() throws ObjectStreamException 52 { 53 try 54 { 55 return ContainerProxyFactory.getProxyClass(false, key, null); 57 } 58 catch (Exception e) 59 { 60 throw new RuntimeException (e); 61 } 62 } 63 64 65 } 66 | Popular Tags |