### Class

# Peas ObjectModule

since: 2

#### Description [src]

    class Peas.ObjectModule : GObject.TypeModule
      implements GObject.TypePlugin {
      /* No available fields */
    }

Type module which allows extension registration.

`PeasObjectModule` is a subclass of `GTypeModule` which allows registration of extensions. It will be used by C extensions implementors to register extension implementations from within the peas_register_types module function.

Available since: 2

#### Ancestors

- GTypeModule
- GObject

#### Implements

- GTypePlugin

#### Constructors

###### peas_object_module_new

Creates a new `PeasObjectModule`.

since: 2

###### peas_object_module_new_embedded

Creates a new `PeasObjectModule` for an embedded plugin.

since: 1.18

###### peas_object_module_new_full

Creates a new `PeasObjectModule`.

since: 2

#### Instance methods

###### peas_object_module_create_object

Creates an object for the `exten_type` passing `n_parameters` and `parameters` to the `PeasFactoryFunc`.

since: 2

###### peas_object_module_get_library

Gets the library.

since: 2

###### peas_object_module_get_module_name

Gets the module name.

since: 2

###### peas_object_module_get_path

Gets the path.

since: 2

###### peas_object_module_get_symbol

Gets the symbol name used to register extension implementations.

since: 1.18

###### peas_object_module_provides_object

Determines if the module provides an extension for `exten_type`.

since: 2

###### peas_object_module_register_extension_factory

Register an implementation for an extension type through a factory function `factory_func` which will instantiate the extension when requested.

since: 2

###### peas_object_module_register_extension_type

Register `impl_type` as an extension which implements `extension_type`.

since: 2

##### Methods inherited from GTypeModule (7)

###### g_type_module_add_interface

Registers an additional interface for a type, whose interface lives in the given type plugin. If the interface was already registered for the type in this plugin, nothing will be done.

since: 2.0

###### g_type_module_register_enum

Looks up or registers an enumeration that is implemented with a particular type plugin. If a type with name `type_name` was previously registered, the `GType` identifier for the type is returned, otherwise the type is newly registered, and the resulting `GType` identifier returned.

unstable since: 2.6

###### g_type_module_register_flags

Looks up or registers a flags type that is implemented with a particular type plugin. If a type with name `type_name` was previously registered, the `GType` identifier for the type is returned, otherwise the type is newly registered, and the resulting `GType` identifier returned.

unstable since: 2.6

###### g_type_module_register_type

Looks up or registers a type that is implemented with a particular type plugin. If a type with name `type_name` was previously registered, the `GType` identifier for the type is returned, otherwise the type is newly registered, and the resulting `GType` identifier returned.

since: 2.0

###### g_type_module_set_name

Sets the name for a `GTypeModule`.

since: 2.0

###### g_type_module_unuse

Decreases the use count of a `GTypeModule` by one. If the result is zero, the module will be unloaded. (However, the `GTypeModule` will not be freed, and types associated with the `GTypeModule` are not unregistered. Once a `GTypeModule` is initialized, it must exist forever.)

since: 2.0

###### g_type_module_use

Increases the use count of a `GTypeModule` by one. If the use count was zero before, the plugin will be loaded. If loading the plugin fails, the use count is reset to its prior value.

since: 2.0

##### Methods inherited from GObject (43)

Please see GObject for a full list of methods.

##### Methods inherited from GTypePlugin (4)

###### g_type_plugin_complete_interface_info

Calls the `complete_interface_info` function from the `GTypePluginClass` of `plugin`. There should be no need to use this function outside of the GObject type system itself.

since: 2.0

###### g_type_plugin_complete_type_info

Calls the `complete_type_info` function from the `GTypePluginClass` of `plugin`. There should be no need to use this function outside of the GObject type system itself.

since: 2.0

###### g_type_plugin_unuse

Calls the `unuse_plugin` function from the `GTypePluginClass` of `plugin`. There should be no need to use this function outside of the GObject type system itself.

since: 2.0

###### g_type_plugin_use

Calls the `use_plugin` function from the `GTypePluginClass` of `plugin`. There should be no need to use this function outside of the GObject type system itself.

since: 2.0

#### Properties

###### Peas.ObjectModule:local-linkage

Whether the module is loaded with local linkage, i.e. #G_MODULE_BIND_LOCAL.

since: 2

###### Peas.ObjectModule:module-name

No description available.

since: 2

###### Peas.ObjectModule:path

No description available.

since: 2

###### Peas.ObjectModule:resident

No description available.

since: 2

###### Peas.ObjectModule:symbol

No description available.

since: 2

#### Signals

##### Signals inherited from GObject (1)

###### GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

since: 2.0

#### Class structure

    struct PeasObjectModuleClass {
      GTypeModuleClass parent_class;

    }

The class structure for `PeasObjectModule`.

###### Class members

`parent_class: GTypeModuleClass`

  The parent class.