com.devexperts.qd.qtp.file
Class FileConnectorFactory

java.lang.Object
  extended by com.devexperts.qd.qtp.file.FileConnectorFactory
All Implemented Interfaces:
MessageConnectorFactory

public class FileConnectorFactory
extends java.lang.Object
implements MessageConnectorFactory


Field Summary
static java.lang.String FILE_PREFIX
           
 
Constructor Summary
FileConnectorFactory()
           
 
Method Summary
 FileConnector 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
 

Field Detail

FILE_PREFIX

public static final java.lang.String FILE_PREFIX
See Also:
Constant Field Values
Constructor Detail

FileConnectorFactory

public FileConnectorFactory()
Method Detail

createMessageConnector

public FileConnector 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.