src/main/java/org/jboss/util/loading/DelegatingClassLoader.java
protected Class<?> loadClass(String className, boolean resolve)
      throws ClassNotFoundException
   {
      // Revert to standard rules
      if (standard)
         return super.loadClass(className, resolve);

      // Ask the parent
      Class<?> clazz = null;
      try
      {
         clazz = parent.loadClass(className);
      }
      catch (ClassNotFoundException e)
      {
         // Not found in parent,
         // maybe it is a proxy registered against this classloader?
         clazz = findLoadedClass(className);
         if (clazz == null)
            throw e;
      }

      // Link the class
      if (resolve)
         resolveClass(clazz);

      return clazz;
   }
protected Class<?> loadClass(String className, boolean resolve)
      throws ClassNotFoundException
   {
      // Revert to standard rules
      if (standard)
         return super.loadClass(className, resolve);

      // Ask the parent
      Class<?> clazz = null;
      try
      {
         clazz = parent.loadClass(className);
      }
      catch (ClassNotFoundException e)
      {
         // Not found in parent,
         // maybe it is a proxy registered against this classloader?
         clazz = findLoadedClass(className);
         if (clazz == null)
            throw e;
      }

      // Link the class
      if (resolve)
         resolveClass(clazz);

      return clazz;
   }
protected Class < ? > loadClass ( String className , boolean resolve ) throws ClassNotFoundException { // Revert to standard rules if ( standard ) return super . loadClass ( className , resolve ) ; // Ask the parent Class < ? > clazz = null ; try { clazz = parent . loadClass ( className ) ; } catch ( ClassNotFoundException e ) { // Not found in parent, // maybe it is a proxy registered against this classloader? clazz = findLoadedClass ( className ) ; if ( clazz == null ) throw e ; } // Link the class if ( resolve ) resolveClass ( clazz ) ; return clazz ; }
Load a class, by asking the parent

@param className the class name to load
@param resolve whether to link the class
@return the loaded class
@throws ClassNotFoundException when the class could not be found
Load a class by asking the parent