Ejemplo n.º 1
0
 /// <summary>
 /// Search the system for given class and return this.
 /// </summary>
 /// <param name="className">see System.Type.AssemblyQualifedName</param>
 /// <param name="cl">ClassLoader - ignored</param>
 /// <param name="initialize">ignored - ever like true</param>
 /// <returns></returns>
 public static Class forName(String className, bool initialize, ClassLoader cl)
 {//throws ClassNotFoundException {
     try
     {
         System.Type t = System.Type.GetType(className);
         if (null == t)
         {
             throw new java.lang.ClassNotFoundException(className);
         }
         return(new Class(t));
     }
     catch
     {
         throw new java.lang.ClassNotFoundException(className);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Returns the systen class loader
 /// </summary>
 /// <returns></returns>
 public ClassLoader getClassLoader()
 {
     return(ClassLoader.getSystemClassLoader());
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Search the system for given class and return this.
 /// </summary>
 /// <param name="className">see System.Type.AssemblyQualifedName</param>
 /// <returns></returns>
 public static Class forName(String className)  //throws ClassNotFoundException {
 {
     return(forName(className, true, ClassLoader.getSystemClassLoader()));
 }
Ejemplo n.º 4
0
 public static java.net.URL getSystemResource(String name)
 {
     return(ClassLoader.getSystemClassLoader().getResource(name));
 }
Ejemplo n.º 5
0
 internal static void setSystemClassLoader(ClassLoader cl)
 {
     systemClassLoader = cl;
 }
Ejemplo n.º 6
0
 protected internal ClassLoader(ClassLoader parent)
 {
     this.parent = parent;
 }
Ejemplo n.º 7
0
 static ClassLoader()
 {
     systemClassLoader = new ClassLoader(null);
 }
Ejemplo n.º 8
0
 protected ClassLoader(ClassLoader parent)
 {
     this.parent = parent;
 }