org.jboss.proxy
Class ClientContainer

java.lang.Object
  extended byorg.jboss.proxy.ClientContainer
All Implemented Interfaces:
java.io.Externalizable, java.lang.reflect.InvocationHandler, java.io.Serializable
Direct Known Subclasses:
ClientContainerEx (src)

public class ClientContainer
extends java.lang.Object
implements java.io.Externalizable, java.lang.reflect.InvocationHandler

An invocation handler whichs sets up the client invocation and starts the invocation interceptor call chain.

See Also:
Serialized Form

Field Summary
 InvocationContext (src) context
          The static information that gets attached to every invocation.
protected static java.lang.Object[] EMPTY_ARGS
          An empty method parameter list.
 Interceptor (src) next
          The first interceptor in the chain.
 
Constructor Summary
ClientContainer()
          Exposed for externalization.
ClientContainer(InvocationContext (src)  context)
           
 
Method Summary
 java.util.ArrayList getInterceptors()
           
 InvocationContext (src) getInvocationContext()
           
 java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method m, java.lang.Object[] args)
           
 void readExternal(java.io.ObjectInput in)
          Externalization support.
 void setInterceptors(java.util.ArrayList interceptors)
           
 Interceptor (src) setNext(Interceptor (src)  interceptor)
           
 void writeExternal(java.io.ObjectOutput out)
          Externalization support.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY_ARGS

protected static final java.lang.Object[] EMPTY_ARGS
An empty method parameter list.


context

public InvocationContext (src)  context
The static information that gets attached to every invocation.


next

public Interceptor (src)  next
The first interceptor in the chain.

Constructor Detail

ClientContainer

public ClientContainer()
Exposed for externalization.


ClientContainer

public ClientContainer(InvocationContext (src)  context)
Method Detail

invoke

public java.lang.Object invoke(java.lang.Object proxy,
                               java.lang.reflect.Method m,
                               java.lang.Object[] args)
                        throws java.lang.Throwable
Specified by:
invoke in interface java.lang.reflect.InvocationHandler
Throws:
java.lang.Throwable

getInvocationContext

public InvocationContext (src)  getInvocationContext()

getInterceptors

public java.util.ArrayList getInterceptors()

setInterceptors

public void setInterceptors(java.util.ArrayList interceptors)

setNext

public Interceptor (src)  setNext(Interceptor (src)  interceptor)

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Externalization support.

Specified by:
writeExternal in interface java.io.Externalizable
Throws:
java.io.IOException

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Externalization support.

Specified by:
readExternal in interface java.io.Externalizable
Throws:
java.io.IOException
java.lang.ClassNotFoundException