EBackend.BackendFactory

g EBackend.BackendFactory EBackend.BackendFactory EDataServer.Extension EDataServer.Extension EDataServer.Extension->EBackend.BackendFactory GObject.Object GObject.Object GObject.Object->EDataServer.Extension

Subclasses:

EBackend.CollectionBackendFactory

Methods

Inherited:

EDataServer.Extension (1), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

get_hash_key ()

get_module_filename ()

new_backend (source)

share_subprocess ()

Virtual Methods

Inherited:

GObject.Object (7)

do_get_hash_key ()

do_new_backend (source)

Properties

Inherited:

EDataServer.Extension (1)

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

EDataServer.Extension

r

Class Details

class EBackend.BackendFactory(**kwargs)
Bases:

EDataServer.Extension

Abstract:

Yes

Structure:

EBackend.BackendFactoryClass

Contains only private data that should be read and manipulated using the functions below.

New in version 3.4.

get_hash_key()
Returns:

a hash key which uniquely identifies self

Return type:

str

Returns a hash key which uniquely identifies self.

Since only one instance of each EBackend.BackendFactory subclass is ever created, the hash key need only be unique among subclasses, not among instances of each subclass.

New in version 3.4.

get_module_filename()
Returns:

the filename for the module associated to the self

Return type:

str

Returns the filename of the shared library for the module used to load the backends provided by self.

New in version 3.16.

new_backend(source)
Parameters:

source (EDataServer.Source) – an EDataServer.Source

Returns:

a new EBackend.Backend instance for source

Return type:

EBackend.Backend

Returns a new EBackend.Backend instance for source.

New in version 3.4.

share_subprocess()
Returns:

True if the self shares the subprocess for all its backends. Otherwise, False.

Return type:

bool

Returns True if the self wants to share the subprocess for all backends provided by itself. Otherwise, returns False.

New in version 3.16.

do_get_hash_key() virtual
Returns:

a hash key which uniquely identifies factory

Return type:

str

Returns a hash key which uniquely identifies factory.

Since only one instance of each EBackend.BackendFactory subclass is ever created, the hash key need only be unique among subclasses, not among instances of each subclass.

New in version 3.4.

do_new_backend(source) virtual
Parameters:

source (EDataServer.Source) – an EDataServer.Source

Returns:

a new EBackend.Backend instance for source

Return type:

EBackend.Backend

Returns a new EBackend.Backend instance for source.

New in version 3.4.