Logo Search packages:      
Sourcecode: jamvm version File versions

java::lang::ClassLoader::ClassLoader ( ClassLoader  parent  )  [inline, protected]

Create a new ClassLoader with the specified parent. The parent will be consulted when a class or resource is requested through loadClass() or getResource(). Only when the parent classloader cannot provide the requested class or resource the findClass() or findResource() method of this classloader will be called. There may be a security check for checkCreateClassLoader.

Parameters:
parent the classloader's parent, or null for the bootstrap classloader
Exceptions:
SecurityException if the security check fails
Since:
1.2

Definition at line 229 of file ClassLoader.java.

References initialized.

  {
    // May we create a new classloader?
    SecurityManager sm = System.getSecurityManager();
    if (sm != null)
      sm.checkCreateClassLoader();
    this.parent = parent;
    this.initialized = true;
  }


Generated by  Doxygen 1.6.0   Back to index