com.devexperts.qd.qtp.nio
Class NioConnectorFactory

java.lang.Object
  extended by com.devexperts.qd.qtp.nio.NioConnectorFactory
All Implemented Interfaces:
MessageConnectorFactory

public class NioConnectorFactory
extends java.lang.Object
implements MessageConnectorFactory


Constructor Summary
NioConnectorFactory()
           
 
Method Summary
 NioServerConnector createMessageConnector(com.devexperts.connector.proto.ApplicationConnectionFactory applicationConnectionFactory, java.lang.String address)
          Creates message connector with a given address.
 java.lang.Class<? extends MessageConnector> getResultingClass()
          Returns the exact class of produced MessageConnectors.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NioConnectorFactory

public NioConnectorFactory()
Method Detail

createMessageConnector

public NioServerConnector createMessageConnector(com.devexperts.connector.proto.ApplicationConnectionFactory applicationConnectionFactory,
                                                 java.lang.String address)
                                          throws InvalidFormatException
Description copied from interface: MessageConnectorFactory
Creates message connector with a given address.

Specified by:
createMessageConnector in interface MessageConnectorFactory
Parameters:
applicationConnectionFactory - ProtocolFactory to use.
address - address to connect to.
Returns:
created MessageConnector or null if this factory does not support the specified address.
Throws:
InvalidFormatException - if connector supports the specified address, but there are some errors in its specification.

getResultingClass

public java.lang.Class<? extends MessageConnector> getResultingClass()
Description copied from interface: MessageConnectorFactory
Returns the exact class of produced MessageConnectors. It can be used to retrieve annotations and java-bean properties.

Specified by:
getResultingClass in interface MessageConnectorFactory
Returns:
the exact class of produced MessageConnectors.