org.jboss.proxy
Class ClientContainer

java.lang.Object
  extended by org.jboss.proxy.ClientContainer
All Implemented Interfaces:
Externalizable, Serializable, InvocationHandler
Direct Known Subclasses:
ClientContainerEx

public class ClientContainer
extends Object
implements Externalizable, InvocationHandler

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

Version:
$Revision: 57209 $
Author:
Marc Fleury
See Also:
Serialized Form

Field Summary
 InvocationContext context
          The static information that gets attached to every invocation.
protected static Object[] EMPTY_ARGS
          An empty method parameter list.
 Interceptor next
          The first interceptor in the chain.
 
Constructor Summary
ClientContainer()
          Exposed for externalization.
ClientContainer(InvocationContext context)
           
 
Method Summary
 ArrayList getInterceptors()
           
 InvocationContext getInvocationContext()
           
 Object invoke(Object proxy, Method m, Object[] args)
           
 void readExternal(ObjectInput in)
          Externalization support.
 void setInterceptors(ArrayList interceptors)
           
 Interceptor setNext(Interceptor interceptor)
           
 void writeExternal(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 Object[] EMPTY_ARGS
An empty method parameter list.


context

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


next

public Interceptor next
The first interceptor in the chain.

Constructor Detail

ClientContainer

public ClientContainer()
Exposed for externalization.


ClientContainer

public ClientContainer(InvocationContext context)
Method Detail

invoke

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

getInvocationContext

public InvocationContext getInvocationContext()

getInterceptors

public ArrayList getInterceptors()

setInterceptors

public void setInterceptors(ArrayList interceptors)

setNext

public Interceptor setNext(Interceptor interceptor)

writeExternal

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

Specified by:
writeExternal in interface Externalizable
Throws:
IOException

readExternal

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

Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.