JBoss Remoting 3.0.0.Beta2

org.jboss.remoting.transporter
Class Transporter

java.lang.Object
  extended by org.jboss.remoting.transporter.Transporter

public final class Transporter
extends Object

A static class which can be used to create transporter proxies.


Method Summary
static
<T> T
createTransporter(Endpoint endpoint, Class<T> interfaceType, T instance)
          Create a transporter for an object instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createTransporter

public static <T> T createTransporter(Endpoint endpoint,
                                      Class<T> interfaceType,
                                      T instance)
                           throws IOException
Create a transporter for an object instance. The given type must be an interface type. The returned object is a serializable proxy that can be sent to other endpoints as a part of a request or a reply.

Parameters:
endpoint - the endpoint to anchor the transporter to
interfaceType - the type of the interface to use
instance - the instance to which invocations will be sent
Returns:
a transporter proxy
Throws:
IOException - if an error occurs

JBoss Remoting 3.0.0.Beta2

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