|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.ClassLoader
org.jboss.ejb3.common.classloader.PrimitiveAwareClassLoader
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
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.
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 |
|---|
public PrimitiveAwareClassLoader(java.lang.ClassLoader parent)
parent - Parent classloader| Method Detail |
|---|
public java.lang.Class<?> loadClass(java.lang.String name)
throws java.lang.ClassNotFoundException
PrimitiveClassLoadingUtil.loadClass(String, ClassLoader) passing
it the classloader returned by ClassLoader.getParent().
loadClass in class java.lang.ClassLoaderjava.lang.ClassNotFoundExceptionPrimitiveClassLoadingUtil
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||