The moment a class is added to the class hierarchy. This usually happens when the application starts, but it can be later if the class is added by a dynamically loaded library or created programmatically.
The class object and metaclass must exist at the time of the call +load (which is the one indicated above).
Rob napier
source share