Thanks Christian this makes sense.
On May 26, 2006, at 1:52 PM, Christian Biesinger wrote:

Byron Wright wrote:
From my limited understanding of XPCOM it would seem that I can create a single instance of my object in my factory and return that in "createInstance". An example of my thoughts might be better:

This is certainly a way to do it, and some code does that to ensure that nothing bad happens if people use createInstance even though they shouldn't, but it is not necessary to do this if all callers use getService - the service manager will not create more than one instance.
_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom


_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom

Reply via email to