com.devexperts.qd.qtp
Interface MessageConnectorFactory

All Known Implementing Classes:
FileConnectorFactory, NioConnectorFactory

public interface MessageConnectorFactory

Factory class for MessageConnector.


Method Summary
 MessageConnector 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.
 

Method Detail

createMessageConnector

MessageConnector createMessageConnector(com.devexperts.connector.proto.ApplicationConnectionFactory applicationConnectionFactory,
                                        java.lang.String address)
                                        throws InvalidFormatException
Creates message connector with a given address.

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

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

Returns:
the exact class of produced MessageConnectors.