Infinity.CommunicationFactory¶
- Implementations:
Methods¶
|
|
|
Virtual Methods¶
|
|
|
Properties¶
None
Signals¶
None
Fields¶
None
Class Details¶
- class Infinity.CommunicationFactory¶
- Bases:
- Structure:
Infinity.CommunicationFactory
is an opaque data type. You should only access it via the public API functions.- instantiate(network, method_name, registry, group)¶
- Parameters:
network (
str
) – A network specifier, such as “tcp/ip” or “jabber”.method_name (
str
) – A method identifier, such as “central” or “groupchat”.registry (
Infinity.CommunicationRegistry
) – AInfinity.CommunicationRegistry
at which the created method can register connections.group (
Infinity.CommunicationGroup
) – TheInfinity.CommunicationGroup
for which to create the method.
- Returns:
A new
Infinity.CommunicationMethod
.- Return type:
Creates a new
Infinity.CommunicationMethod
for network and method_name. The factory needs to support that method, seeInfinity.CommunicationFactory.supports_method
().
- supports_method(network, method_name)¶
- Parameters:
- Returns:
Whether self supports the given network and method name.
- Return type:
Returns whether self supports creating methods that implement method_name as communication method for connections on network (see
Infinity.XmlConnection
:network
).
- do_instantiate(network, method_name, registry, group) virtual¶
- Parameters:
network (
str
) – A network specifier, such as “tcp/ip” or “jabber”.method_name (
str
) – A method identifier, such as “central” or “groupchat”.registry (
Infinity.CommunicationRegistry
) – AInfinity.CommunicationRegistry
at which the created method can register connections.group (
Infinity.CommunicationGroup
) – TheInfinity.CommunicationGroup
for which to create the method.
- Returns:
A new
Infinity.CommunicationMethod
.- Return type:
Creates a new
Infinity.CommunicationMethod
for network and method_name. The factory needs to support that method, seeInfinity.CommunicationFactory.supports_method
().
- do_supports_method(network, method_name) virtual¶
- Parameters:
- Returns:
Whether factory supports the given network and method name.
- Return type:
Returns whether factory supports creating methods that implement method_name as communication method for connections on network (see
Infinity.XmlConnection
:network
).