A decorator that adds a class as a configurable in a `Registry`
instance.
Parameters
----------
name : `str`
Name of the target (the decorated class) in the ``registry``.
registry : `Registry`
The `Registry` instance that the decorated class is added to.
ConfigClass : `lsst.pex.config.Config`-type, optional
Config class associated with the configurable. If `None`, the class's
``ConfigClass`` attribute is used instead.
See also
--------
registerConfig
Notes
-----
Internally, this decorator runs `Registry.register`.
Definition at line 358 of file registry.py.
359 """A decorator that adds a class as a configurable in a `Registry`
365 Name of the target (the decorated class) in the ``registry``.
366 registry : `Registry`
367 The `Registry` instance that the decorated class is added to.
368 ConfigClass : `lsst.pex.config.Config`-type, optional
369 Config class associated with the configurable. If `None`, the class's
370 ``ConfigClass`` attribute is used instead.
378 Internally, this decorator runs `Registry.register`.
381 registry.register(name, target=cls, ConfigClass=ConfigClass)