1 22 package org.jboss.aop.proxy; 23 24 import org.jboss.aop.InstanceAdvisor; 25 26 import java.io.ObjectStreamException ; 27 import java.io.Serializable ; 28 29 35 public class MarshalledClassProxy implements Serializable 36 { 37 static final long serialVersionUID = 4049171769644464715L; 38 39 private Class clazz; 40 private ProxyMixin[] mixins; 41 private InstanceAdvisor advisor; 42 43 protected MarshalledClassProxy() 44 { 45 } 46 47 public MarshalledClassProxy(Class clazz, ProxyMixin[] mixins, InstanceAdvisor advisor) 48 { 49 this.clazz = clazz; 50 this.advisor = advisor; 51 this.mixins = mixins; 52 } 53 54 public Object readResolve() throws ObjectStreamException 55 { 56 try 57 { 58 return ClassProxyFactory.newInstance(clazz, mixins, advisor); 59 } 60 catch (Exception e) 61 { 62 throw new RuntimeException (e); 63 } 64 } 65 } 66 | Popular Tags |