Bug 316090 - GREImpl.loadDependentLibraries hardcodes the list, and turn javaxpcom on by default for XULRunner, patch by jhpedemonte and myself with co-review
git-svn-id: svn://10.0.0.236/trunk@186108 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -43,18 +43,30 @@ import org.mozilla.xpcom.*;
|
||||
|
||||
public class XPCOMImpl implements IXPCOM {
|
||||
|
||||
public nsIServiceManager initXPCOM(File aMozBinDirectory,
|
||||
IAppFileLocProvider aAppFileLocProvider) {
|
||||
// load JNI library
|
||||
String path = "";
|
||||
if (aMozBinDirectory != null) {
|
||||
path = aMozBinDirectory + File.separator;
|
||||
}
|
||||
System.load(path + System.mapLibraryName("javaxpcomglue"));
|
||||
|
||||
return initXPCOMNative(aMozBinDirectory, aAppFileLocProvider);
|
||||
}
|
||||
|
||||
public native nsIServiceManager initXPCOMNative(File aMozBinDirectory,
|
||||
IAppFileLocProvider aAppFileLocProvider);
|
||||
|
||||
public native void shutdownXPCOM(nsIServiceManager aServMgr);
|
||||
|
||||
public native nsIComponentManager getComponentManager();
|
||||
|
||||
public native nsIComponentRegistrar getComponentRegistrar();
|
||||
|
||||
public native nsIServiceManager getServiceManager();
|
||||
|
||||
public native nsIServiceManager initXPCOM(File aMozBinDirectory,
|
||||
IAppFileLocProvider aAppFileLocProvider);
|
||||
|
||||
public native nsILocalFile newLocalFile(String aPath, boolean aFollowLinks);
|
||||
|
||||
public native void shutdownXPCOM(nsIServiceManager aServMgr);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user