Class ConnectorFactory
java.lang.Object
com.flir.thermalsdk.live.connectivity.ConnectorFactory
Helper singleton to create Connector objects.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
Interface used to define a creator forCameraScanner
object. -
Method Summary
Modifier and TypeMethodDescriptioncreate
(CommunicationInterface communicationInterface) Creates aConnector
for the givenCommunicationInterface
type.static ConnectorFactory
Gets an instance of the factory.void
register
(CommunicationInterface communicationInterface, ConnectorFactory.ConnectorCreator creator) Allows to register a customConnectorFactory.ConnectorCreator
for a specifiedCommunicationInterface
type.
-
Method Details
-
getInstance
Gets an instance of the factory.- Returns:
- Returns an instance of the factory.
-
create
Creates aConnector
for the givenCommunicationInterface
type.- Parameters:
communicationInterface
- defines an interface on which the connection will be performed- Returns:
- Returns a concrete
Connector
instance.
-
register
public void register(CommunicationInterface communicationInterface, ConnectorFactory.ConnectorCreator creator) Allows to register a customConnectorFactory.ConnectorCreator
for a specifiedCommunicationInterface
type.- Parameters:
communicationInterface
- defines an interface for which the connector will be registeredcreator
- a creator interface used to instantiate the properConnector
object
-