1 22 package org.jboss.aop.proxy; 23 24 import java.io.ObjectStreamException ; 25 26 30 public class ClassProxyTemplate implements ClassProxy, java.io.Externalizable 31 { 32 static final long serialVersionUID = 7776009946350762531L; 33 34 public ClassProxyTemplate() 35 { 36 } 37 38 public org.jboss.aop.InstanceAdvisor instanceAdvisor; 39 public org.jboss.aop.proxy.ProxyMixin[] mixins; 40 41 public org.jboss.aop.InstanceAdvisor _getInstanceAdvisor() 42 { 43 return instanceAdvisor; 44 } 45 46 public void _setInstanceAdvisor(org.jboss.aop.InstanceAdvisor newAdvisor) 47 { 48 instanceAdvisor = (org.jboss.aop.ClassInstanceAdvisor) newAdvisor; 49 } 50 51 public org.jboss.aop.joinpoint.InvocationResponse _dynamicInvoke(org.jboss.aop.joinpoint.Invocation invocation) 52 throws Throwable 53 { 54 ((org.jboss.aop.joinpoint.InvocationBase) invocation).setInstanceResolver(instanceAdvisor.getMetaData()); 55 org.jboss.aop.advice.Interceptor[] aspects = instanceAdvisor.getInterceptors(); 56 return new org.jboss.aop.joinpoint.InvocationResponse(invocation.invokeNext(aspects)); 57 } 58 59 public Object writeReplace() throws ObjectStreamException 60 { 61 return new org.jboss.aop.proxy.MarshalledClassProxy(this.getClass().getSuperclass(), mixins, instanceAdvisor); 62 } 63 64 public void setMixins(org.jboss.aop.proxy.ProxyMixin[] mixins) 65 { 66 this.mixins = mixins; 67 } 68 69 public void writeExternal(java.io.ObjectOutput out) 70 throws java.io.IOException 71 { 72 } 73 74 public void readExternal(java.io.ObjectInput in) 75 throws java.io.IOException , ClassNotFoundException 76 { 77 } 78 79 } 80 | Popular Tags |