nsIComponentLoader is dead - long live nsIModuleLoader! Take the

opportunity to remove support for nsIComponentManagerObsolete, and
formalize a nice shutdown API.

Not part of the build.


git-svn-id: svn://10.0.0.236/trunk@186246 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mhammond%skippinet.com.au
2005-12-19 05:05:45 +00:00
parent d1179099dd
commit afc19f2f56
14 changed files with 123 additions and 551 deletions

View File

@@ -72,16 +72,13 @@ def UnwrapObject(ob):
ret = tracer_unwrap(ret)
return ret
# Create the main module for the Python loader.
# This is a once only init process, and the returned object
# if used to load all other Python components.
# This means that we keep all factories, modules etc implemented in
# Python!
# Create the (Python implemented) module for the Python loader. This
# Python loader will then (indirectly) create other modules for any found
# .py file components
def NS_GetModule( serviceManager, nsIFile ):
import loader
import loader, module
iid = _xpcom.IID_nsIModule
return WrapObject(loader.MakePythonComponentLoaderModule(serviceManager, nsIFile), iid, bWrapClient = 0)
return WrapObject(module.Module([loader.ModuleLoader]), iid, bWrapClient = 0)
def _shutdown():
from policy import _shutdown