ServiceManager.
register
Register an object with the service manager.
obj (object) – The object to register.
name (str, optional) – The name to register the object with. If no name is provided, the class name will be used.
ServiceRegisteredError – If a service with this name already exists.