Support framework for registering and accessing services.
IServiceComponent interface.
Bases: builtins.object
Interface for service components.
Parameters: |
|
---|
IService interface.
Bases: builtins.object
Interface for component’s services.
See also: ServiceAccessor.
IServiceIdentification interface.
Bases: builtins.object
Access to services.
A service can be made available by registering via this interface. Registered classes has to implement IService.
Provides access to registered services interfaces.
See also: registerInterface().
Parameters: |
|
---|---|
Returns: | Instance of a service provider of the particular service. |
Return type: | serviceIdentification.interface |
Raises KeyError: | |
If serviceIdentification is not registered. |
Returns providers identifications for the given service.
Parameters: | serviceIdentification (IServiceIdentification) – Identification of the service. |
---|---|
Returns: | Service providers. |
Return type: | iterable<serviceIdentification.providerIdentificationInterface> |
Raises KeyError: | |
If serviceIdentification is not registered. |
Registers a service.
See also: unregisterService(), getOrCreateService().
Parameters: |
|
---|---|
Raises: |
|
Unregisters a service with all its providers.
All serviceType instances all destroyed first.
See also: registerService(), getOrCreateService().
Parameters: | serviceIdentification (IServiceIdentification) – Identification of the service that shall be registered. |
---|---|
Raises KeyError: | |
If serviceIdentification is not registered. |
Bases: builtins.object
Access to services.
A service can be made available by registering via this interface. Registered classes has to implement IService.
Provides access to registered services interfaces.
See also: registerInterface().
Parameters: |
|
---|---|
Returns: | Instance of a service provider of the particular service. |
Return type: | serviceIdentification.interface |
Raises KeyError: | |
If serviceIdentification is not registered. |
Returns providers identifications for the given service.
Parameters: | serviceIdentification (IServiceIdentification) – Identification of the service. |
---|---|
Returns: | Service providers. |
Return type: | iterable<serviceIdentification.providerIdentificationInterface> |
Raises KeyError: | |
If serviceIdentification is not registered. |
Registers a service.
See also: unregisterService(), getOrCreateService().
Parameters: |
|
---|---|
Raises: |
|
Unregisters a service with all its providers.
All serviceType instances all destroyed first.
See also: registerService(), getOrCreateService().
Parameters: | serviceIdentification (IServiceIdentification) – Identification of the service that shall be registered. |
---|---|
Raises KeyError: | |
If serviceIdentification is not registered. |