Package org.apache.cxf.common.spi
Class ClassGeneratorClassLoader
java.lang.Object
org.apache.cxf.common.spi.ClassGeneratorClassLoader
- Direct Known Subclasses:
NamespaceClassGenerator
Class loader used to store and retrieve class generated during runtime to avoid class generation each time.
inherited class use asmHelper to generate bytes and use @see #loadClass(String, Class<?>, byte[])
or @see #loadClass(String, ClassLoader, byte[]) to store generated class.Class can be generated during buildtime.
equivalent class is @see org.apache.cxf.common.spi.GeneratedClassClassLoader
- Author:
- olivier dufour
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected final Bus
protected static final Map<Class<?>,
WeakReference<ClassGeneratorClassLoader.TypeHelperClassLoader>> protected static final Map<ClassLoader,
WeakReference<ClassGeneratorClassLoader.TypeHelperClassLoader>> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Class<?>
protected Class<?>
findClass
(String className, ClassLoader classLoader) protected Class<?>
protected Class<?>
loadClass
(String className, ClassLoader l, byte[] bytes)
-
Field Details
-
CLASS_MAP
protected static final Map<Class<?>,WeakReference<ClassGeneratorClassLoader.TypeHelperClassLoader>> CLASS_MAP -
LOADER_MAP
protected static final Map<ClassLoader,WeakReference<ClassGeneratorClassLoader.TypeHelperClassLoader>> LOADER_MAP -
bus
-
-
Constructor Details
-
ClassGeneratorClassLoader
-
-
Method Details
-
loadClass
-
loadClass
-
findClass
-
findClass
-