org.jboss.aop.proxy
Class ClassProxyTemplate

java.lang.Object
  extended by org.jboss.aop.proxy.ClassProxyTemplate
All Implemented Interfaces:
Externalizable, Serializable, InstanceAdvised, ClassProxy

public class ClassProxyTemplate
extends Object
implements ClassProxy, Externalizable

Version:
$Revision: 71276 $
Author:
Bill Burke
See Also:
Serialized Form

Field Summary
 InstanceAdvisor instanceAdvisor
           
 ProxyMixin[] mixins
           
 
Constructor Summary
ClassProxyTemplate()
           
 
Method Summary
 InvocationResponse _dynamicInvoke(Invocation invocation)
           
 InstanceAdvisor _getInstanceAdvisor()
          Returns the Advisor associated with this weaved instance.
 void _setInstanceAdvisor(InstanceAdvisor newAdvisor)
          Sets the instance advisor associated with this weaved instance.
 void readExternal(ObjectInput in)
           
 void setMixins(ProxyMixin[] mixins)
           
 void writeExternal(ObjectOutput out)
           
 Object writeReplace()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instanceAdvisor

public InstanceAdvisor instanceAdvisor

mixins

public ProxyMixin[] mixins
Constructor Detail

ClassProxyTemplate

public ClassProxyTemplate()
Method Detail

_getInstanceAdvisor

public InstanceAdvisor _getInstanceAdvisor()
Description copied from interface: InstanceAdvised
Returns the Advisor associated with this weaved instance.

Specified by:
_getInstanceAdvisor in interface InstanceAdvised
Returns:
the advisor or manager of this weaved object.

_setInstanceAdvisor

public void _setInstanceAdvisor(InstanceAdvisor newAdvisor)
Description copied from interface: InstanceAdvised
Sets the instance advisor associated with this weaved instance.

Specified by:
_setInstanceAdvisor in interface InstanceAdvised
Parameters:
newAdvisor - the new advisor or manager of this weaved object.

_dynamicInvoke

public InvocationResponse _dynamicInvoke(Invocation invocation)
                                  throws Throwable
Specified by:
_dynamicInvoke in interface ClassProxy
Throws:
Throwable

writeReplace

public Object writeReplace()
                    throws ObjectStreamException
Throws:
ObjectStreamException

setMixins

public void setMixins(ProxyMixin[] mixins)
Specified by:
setMixins in interface ClassProxy

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException


Copyright © 2008 JBoss, a division of Red Hat, Inc.. All Rights Reserved.