JBoss Remoting 3.1.0.Beta1

org.jboss.remoting3.stream
Interface StreamHandlerFactory<T,C extends Channel>

Type Parameters:
T - the streamable object type
C - the channel type that this handler uses
All Known Implementing Classes:
InputStreamHandlerFactory, OutputStreamHandlerFactory

public interface StreamHandlerFactory<T,C extends Channel>

A stream handler factory. Produces stream handler instances for the given object, which in turn uses a specified channel type to stream the data.


Method Summary
 StreamHandler<T,C> createStreamHandler(T localInstance, StreamContext streamContext)
          Create a stream handler instance for a local object.
 

Method Detail

createStreamHandler

StreamHandler<T,C> createStreamHandler(T localInstance,
                                       StreamContext streamContext)
                                                       throws IOException
Create a stream handler instance for a local object.

Parameters:
localInstance - the local instance
streamContext - the stream context
Returns:
the stream handler for this type
Throws:
IOException - if an error occurs

JBoss Remoting 3.1.0.Beta1

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