org.jboss.remoting.transporter
Class Transporter
java.lang.Object
org.jboss.remoting.transporter.Transporter
public final class Transporter
- extends Object
A static class which can be used to create transporter proxies.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 tointerfaceType
- the type of the interface to useinstance
- the instance to which invocations will be sent
- Returns:
- a transporter proxy
- Throws:
IOException
- if an error occurs
Copyright © 2008 JBoss, a division of Red Hat, Inc.