public static object getAssemblyClassLoader(Assembly asm, object extcl) { if (extcl == null || asm.IsDefined(typeof(IKVM.Attributes.CustomAssemblyClassLoaderAttribute), false)) { return(AssemblyClassLoader.FromAssembly(asm).GetJavaClassLoader()); } return(null); }
public static object LoadClassFromAssembly(Assembly asm, string className) { TypeWrapper tw = AssemblyClassLoader.FromAssembly(asm).LoadClassByDottedNameFast(className); if (tw != null) { return(tw.ClassObject); } return(null); }
public static void InitializeModule(Module module) { Assembly asm = Assembly.GetCallingAssembly(); if (module.Assembly != asm) { throw new ArgumentOutOfRangeException(); } object classLoader = AssemblyClassLoader.FromAssembly(asm).GetJavaClassLoader(); Action<Module> init = (Action<Module>)Delegate.CreateDelegate(typeof(Action<Module>), classLoader, "InitializeModule", false, false); if (init != null) { init(module); } }
public static void addBootClassPathAssembly(Assembly asm) { ClassLoaderWrapper.GetBootstrapClassLoader().AddDelegate(AssemblyClassLoader.FromAssembly(asm)); }
public static global::java.lang.ClassLoader GetAssemblyClassLoader(Assembly asm) { return(AssemblyClassLoader.FromAssembly(asm).GetJavaClassLoader()); }
public static object GetAssemblyClassLoader(Assembly asm) { return(AssemblyClassLoader.FromAssembly(asm).GetJavaClassLoader()); }