org.apache.geronimo.gshell.whisper.transport.base
Class BaseTransportFactory<T extends BaseTransport,TC extends Transport.Configuration,S extends BaseTransportServer,SC extends TransportServer.Configuration>

java.lang.Object
  extended by org.apache.geronimo.gshell.whisper.transport.base.BaseTransportFactory<T,TC,S,SC>
All Implemented Interfaces:
TransportFactory
Direct Known Subclasses:
TcpTransportFactory, VmTransportFactory

public abstract class BaseTransportFactory<T extends BaseTransport,TC extends Transport.Configuration,S extends BaseTransportServer,SC extends TransportServer.Configuration>
extends Object
implements TransportFactory

Support for TransportFactory implementations.

Version:
$Rev: 579828 $ $Date: 2007-09-26 15:15:42 -0700 (Wed, 26 Sep 2007) $

Field Summary
protected  org.codehaus.plexus.PlexusContainer container
           
 
Constructor Summary
protected BaseTransportFactory(String scheme)
           
 
Method Summary
 S bind(URI location, org.apache.mina.common.IoHandler handler)
           
 S bind(URI location, SC config)
           
 T connect(URI remote, URI local, org.apache.mina.common.IoHandler handler)
           
 T connect(URI remote, URI local, TC config)
           
 String getScheme()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.geronimo.gshell.whisper.transport.TransportFactory
bind, connect
 

Field Detail

container

@Requirement
protected org.codehaus.plexus.PlexusContainer container
Constructor Detail

BaseTransportFactory

protected BaseTransportFactory(String scheme)
Method Detail

getScheme

public String getScheme()
Specified by:
getScheme in interface TransportFactory

connect

public T connect(URI remote,
                 URI local,
                 TC config)
                                throws Exception
Throws:
Exception

connect

public T connect(URI remote,
                 URI local,
                 org.apache.mina.common.IoHandler handler)
                                throws Exception
Specified by:
connect in interface TransportFactory
Throws:
Exception

bind

public S bind(URI location,
              SC config)
                                   throws Exception
Throws:
Exception

bind

public S bind(URI location,
              org.apache.mina.common.IoHandler handler)
                                   throws Exception
Specified by:
bind in interface TransportFactory
Throws:
Exception


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.