зеркало из https://github.com/mono/ikvm-fork.git
Added ikvm.runtime.Startup.addBootClassPathAssemby() API.
This commit is contained in:
Родитель
1874857e15
Коммит
459bd89fa9
|
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче