org.jboss.remoting3.stream
Interface StreamHandlerFactory<T,C extends Channel>
- Type Parameters:
T - the streamable object typeC - 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.
createStreamHandler
StreamHandler<T,C> createStreamHandler(T localInstance,
StreamContext streamContext)
throws IOException
- Create a stream handler instance for a local object.
- Parameters:
localInstance - the local instancestreamContext - the stream context
- Returns:
- the stream handler for this type
- Throws:
IOException - if an error occurs
Copyright © 2010 JBoss, a division of Red Hat, Inc.