org.jboss.remoting
Class ClientInvokerAdapter

java.lang.Object
  extended byorg.jboss.remoting.ClientInvokerAdapter
All Implemented Interfaces:
ClientInterceptor (src) , java.io.Serializable

public class ClientInvokerAdapter
extends java.lang.Object
implements ClientInterceptor (src) , java.io.Serializable

ClientInvokerAdapter.java is a ClientInterceptor for the end of the interceptor chain: it finds the right RemoteClientInvoker and calls it. This is an mbean only for ease of configuration of interceptor chains. Created: Wed Apr 30 19:30:36 2003

See Also:
Serialized Form

Constructor Summary
ClientInvokerAdapter()
           
ClientInvokerAdapter(java.lang.ClassLoader cl)
           
 
Method Summary
 void addListener(InvokerLocator (src)  locator, java.lang.String subsystem, InvokerCallbackHandler (src)  callbackHandler)
          The addListener method
 void connect(InvokerLocator (src)  locator)
          The connect method
 void disconnect(InvokerLocator (src)  locator)
          The disconnect method
 java.util.List getCallbacks(InvokerLocator (src)  locator, java.lang.String subsystem)
          The getCallbacks method
protected  ClientInvoker (src) getClientInvoker(InvokerLocator (src)  locator)
           
 java.lang.Object invoke(InvocationRequest (src)  invocation)
          The invoke method
 boolean isConnected(InvokerLocator (src)  locator)
          The isConnected method
 void removeListener(InvokerLocator (src)  locator, java.lang.String subsystem, InvokerCallbackHandler (src)  callbackHandler)
          The removeListener method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientInvokerAdapter

public ClientInvokerAdapter()

ClientInvokerAdapter

public ClientInvokerAdapter(java.lang.ClassLoader cl)
Method Detail

addListener

public void addListener(InvokerLocator (src)  locator,
                        java.lang.String subsystem,
                        InvokerCallbackHandler (src)  callbackHandler)
                 throws java.lang.Throwable
The addListener method

Specified by:
addListener in interface ClientInterceptor (src)
Parameters:
callbackHandler -
Throws:
java.lang.Throwable - if an error occurs

removeListener

public void removeListener(InvokerLocator (src)  locator,
                           java.lang.String subsystem,
                           InvokerCallbackHandler (src)  callbackHandler)
                    throws java.lang.Throwable
The removeListener method

Specified by:
removeListener in interface ClientInterceptor (src)
Parameters:
callbackHandler -
Throws:
java.lang.Throwable - if an error occurs

getCallbacks

public java.util.List getCallbacks(InvokerLocator (src)  locator,
                                   java.lang.String subsystem)
                            throws java.lang.Throwable
The getCallbacks method

Specified by:
getCallbacks in interface ClientInterceptor (src)
Returns:
a List value
Throws:
java.lang.Throwable - if an error occurs

invoke

public java.lang.Object invoke(InvocationRequest (src)  invocation)
                        throws java.lang.Throwable
The invoke method

Specified by:
invoke in interface ClientInterceptor (src)
Returns:
an Object value
Throws:
java.lang.Throwable - if an error occurs

connect

public void connect(InvokerLocator (src)  locator)
             throws java.lang.Exception
The connect method

Specified by:
connect in interface ClientInterceptor (src)
Throws:
java.lang.Exception - if an error occurs

isConnected

public boolean isConnected(InvokerLocator (src)  locator)
                    throws java.lang.Exception
The isConnected method

Specified by:
isConnected in interface ClientInterceptor (src)
Returns:
a boolean value
Throws:
java.lang.Exception

disconnect

public void disconnect(InvokerLocator (src)  locator)
                throws java.lang.Exception
The disconnect method

Specified by:
disconnect in interface ClientInterceptor (src)
Throws:
java.lang.Exception

getClientInvoker

protected ClientInvoker (src)  getClientInvoker(InvokerLocator (src)  locator)
                                  throws java.lang.Exception
Throws:
java.lang.Exception