Class ConnectorFactory
java.lang.Object
com.flir.thermalsdk.live.connectivity.ConnectorFactory
Helper singleton to create Connector objects.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceInterface used to define a creator forCameraScannerobject. -
Method Summary
Modifier and TypeMethodDescriptioncreate(CommunicationInterface communicationInterface) Creates aConnectorfor the givenCommunicationInterfacetype.static ConnectorFactoryGets an instance of the factory.voidregister(CommunicationInterface communicationInterface, ConnectorFactory.ConnectorCreator creator) Allows to register a customConnectorFactory.ConnectorCreatorfor a specifiedCommunicationInterfacetype.
-
Method Details
-
getInstance
Gets an instance of the factory.- Returns:
- Returns an instance of the factory.
-
create
Creates aConnectorfor the givenCommunicationInterfacetype.- Parameters:
communicationInterface- defines an interface on which the connection will be performed- Returns:
- Returns a concrete
Connectorinstance.
-
register
public void register(CommunicationInterface communicationInterface, ConnectorFactory.ConnectorCreator creator) Allows to register a customConnectorFactory.ConnectorCreatorfor a specifiedCommunicationInterfacetype.- Parameters:
communicationInterface- defines an interface for which the connector will be registeredcreator- a creator interface used to instantiate the properConnectorobject
-