Class DelegatingClassLoader

java.lang.Object
java.lang.ClassLoader
org.glassfish.internal.api.DelegatingClassLoader

public class DelegatingClassLoader extends ClassLoader
This class loader has a list of class loaders called as delegates that it uses to find classes.

All those delegates must have the same parent as this class loader in order to have a consistent class space. By consistent class space, we mean a class space where no two loaded class have same name. An inconsistent class space can lead to ClassCastException.

This class loader does not define any class, classes are always loaded either by its parent or by one of the delegates.

Author:
Sanjeeb.Sahoo@Sun.COM