Exemple #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);
     }
 }
Exemple #2
0
 /// <summary>
 /// Returns the systen class loader
 /// </summary>
 /// <returns></returns>
 public ClassLoader getClassLoader()
 {
     return(ClassLoader.getSystemClassLoader());
 }
Exemple #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()));
 }
Exemple #4
0
 public static java.net.URL getSystemResource(String name)
 {
     return(ClassLoader.getSystemClassLoader().getResource(name));
 }
Exemple #5
0
 internal static void setSystemClassLoader(ClassLoader cl)
 {
     systemClassLoader = cl;
 }
Exemple #6
0
 protected internal ClassLoader(ClassLoader parent)
 {
     this.parent = parent;
 }
Exemple #7
0
 static ClassLoader()
 {
     systemClassLoader = new ClassLoader(null);
 }
Exemple #8
0
 protected ClassLoader(ClassLoader parent)
 {
     this.parent = parent;
 }