Added ikvm.runtime.Startup.addBootClassPathAssemby() API.

This commit is contained in:
jfrijters 2010-12-28 09:03:38 +00:00
Родитель 1874857e15
Коммит 459bd89fa9
3 изменённых файлов: 15 добавлений и 1 удалений

Просмотреть файл

@ -206,4 +206,6 @@ public final class Startup
}
return "";
}
public static native void addBootClassPathAssemby(Assembly assembly);
}

Просмотреть файл

@ -1,5 +1,5 @@
/*
Copyright (C) 2002-2009 Jeroen Frijters
Copyright (C) 2002-2010 Jeroen Frijters
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
@ -1010,6 +1010,13 @@ namespace IKVM.Internal
return new AssemblyClassLoader(assembly);
}
internal void AddDelegate(AssemblyClassLoader acl)
{
LazyInitExports();
Array.Resize(ref delegates, delegates.Length + 1);
delegates[delegates.Length - 1] = acl;
}
#if !STATIC_COMPILER && !FIRST_PASS && !STUB_GENERATOR
private void InitializeJavaClassLoader()
{

Просмотреть файл

@ -344,6 +344,11 @@ namespace IKVM.NativeCode.ikvm.runtime
jlThread.currentThread().die();
#endif
}
public static void addBootClassPathAssemby(Assembly asm)
{
ClassLoaderWrapper.GetBootstrapClassLoader().AddDelegate(global::IKVM.Internal.AssemblyClassLoader.FromAssembly(asm));
}
}
}