def named_domain(domain_class):

    named_domains[domain_class.name] = domain_class()

    return domain_class
Decorates and automatically registers a domain class.
dataset/ETHPy150Open borg-project/borg/borg/__init__.py/named_domain