Go to the latest version of this document.

# ``twisted`.`internet`.`interfaces`.`IServiceCollection``

interface documentation

`class IServiceCollection(Interface): (source)`

View In Hierarchy

An object which provides access to a collection of services.

Method | `addService` | Add a service to this collection.
Method | `getServiceNamed` | Retrieve the named service from this application.
Method | `removeService` | Remove a service from this collection.

def addService(service: `object`): (source)

Add a service to this collection.

def getServiceNamed(serviceName: `str`) -> `object`: (source)

Retrieve the named service from this application.

Raise a `KeyError` if there is no such service name.

def removeService(service: `object`): (source)

Remove a service from this collection.