nsIClassInfo
good for?If you use a C++ class which implements nsIClassInfo
from JavaScript, then you don't have to explicitly call QueryInterface
on the JavaScript object to access the object's interfaces.
nsIClassInfo
is good for other things too, but they're dark XPCOM magic.
If you're writing JavaScript code which uses a C++ class implementing nsIClassInfo, you don't need to do anything to activate the auto-interface magic which makes calling QueryInterface unnecessary. It just happens.
See nsIClassInfoImpl.h
for instructions.
That's also detailed in nsIClassInfoImpl.h
.