Decorator: register the decorated class or function under key.
key
Usage
Source
Registry.register(key)