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.

parent the classloader's parent, or null for the bootstrap classloader
SecurityException if the security check fails

Definition at line 229 of file ClassLoader.java.

References initialized.

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

Generated by  Doxygen 1.6.0   Back to index