org.jboss.ejb3.common.classloader
Class PrimitiveAwareClassLoader

java.lang.Object
  extended by java.lang.ClassLoader
      extended by org.jboss.ejb3.common.classloader.PrimitiveAwareClassLoader

Deprecated. Since 1.0.1 version of jboss-ejb3-common : Do not use this "classloader" any more. Instead use the PrimitiveClassLoadingUtil utility to take care of centralized logic for primitive handling during classloading. See https://jira.jboss.org/jira/browse/EJBTHREE-1910 for more details.

@Deprecated
public class PrimitiveAwareClassLoader
extends java.lang.ClassLoader

PrimitiveAwareClassLoader This is more of a hack to avoid checking for primitives at multiple places while loading a class from a name.
The PrimitiveAwareClassLoader will first check whether the request is to load a primitive. If it's a primitive then it returns back the appropriate Class corresponding to the primitive. For all other requests, it redirects the request to the parent classloader.

See Also:
PrimitiveClassLoadingUtil.loadClass(String, ClassLoader), https://jira.jboss.org/jira/browse/EJBTHREE-1910

Constructor Summary
PrimitiveAwareClassLoader(java.lang.ClassLoader parent)
          Deprecated.  
 
Method Summary
 java.lang.Class<?> loadClass(java.lang.String name)
          Deprecated. Since jboss-ejb3-common 1.0.1, this just delegates the call to PrimitiveClassLoadingUtil.loadClass(String, ClassLoader) passing it the classloader returned by ClassLoader.getParent().
 
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrimitiveAwareClassLoader

public PrimitiveAwareClassLoader(java.lang.ClassLoader parent)
Deprecated. 
Parameters:
parent - Parent classloader
Method Detail

loadClass

public java.lang.Class<?> loadClass(java.lang.String name)
                             throws java.lang.ClassNotFoundException
Deprecated. 
Since jboss-ejb3-common 1.0.1, this just delegates the call to PrimitiveClassLoadingUtil.loadClass(String, ClassLoader) passing it the classloader returned by ClassLoader.getParent().

Overrides:
loadClass in class java.lang.ClassLoader
Throws:
java.lang.ClassNotFoundException
See Also:
PrimitiveClassLoadingUtil