| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final BytecodeProvider | |
| private final EnhancementContext | |
| private volatile WeakReference | |
| private final ReentrantLock |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private Enhancer | |
| public void | discoverTypes(ClassLoader loader, String className)
Implements org. |
| private Enhancer | |
| private static EnhancingClassTransformerImpl. | getEnhancerEntry(WeakReference<EnhancingClassTransformerImpl.
|
| public byte[] | transform(ClassLoader
the defining loader of the class to be
transformed, may be null if the bootstrap loader loader, String the name of the class in the internal form
of fully qualified class and interface names className, Class<?> if this is a redefine, the
class being redefined, otherwise null classBeingRedefined, ProtectionDomain the protection domain of the
class being defined or redefined protectionDomain, byte[] the input byte buffer in class
file format - must not be modified classfileBuffer)Implements jakarta. |
| bytecodeProvider | back to summary |
|---|---|
| private final BytecodeProvider bytecodeProvider | |
| enhancementContext | back to summary |
|---|---|
| private final EnhancementContext enhancementContext | |
| entryReference | back to summary |
|---|---|
| private volatile WeakReference<EnhancingClassTransformerImpl. | |
| lock | back to summary |
|---|---|
| private final ReentrantLock lock | |
| EnhancingClassTransformerImpl | back to summary |
|---|---|
| public EnhancingClassTransformerImpl(EnhancementContext enhancementContext) | |
| createEnhancer | back to summary |
|---|---|
| private Enhancer createEnhancer(ClassLoader loader) | |
| discoverTypes | back to summary |
|---|---|
| public void discoverTypes(ClassLoader loader, String className) Implements org.
| |
| getEnhancer | back to summary |
|---|---|
| private Enhancer getEnhancer(ClassLoader loader) | |
| getEnhancerEntry | back to summary |
|---|---|
| private static EnhancingClassTransformerImpl. | |
| transform | back to summary |
|---|---|
| public byte[] transform(ClassLoader loader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) throws TransformerException Implements jakarta. Doc from jakarta. Invoked when a class is being loaded or redefined. The implementation of this method may transform the supplied class file and return a new replacement class file.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final ClassLoader | |
| pack-priv final Enhancer |
| Access | Constructor and Description |
|---|---|
| public |
| classLoader | back to summary |
|---|---|
| pack-priv final ClassLoader classLoader | |
| enhancer | back to summary |
|---|---|
| pack-priv final Enhancer enhancer | |
| Entry | back to summary |
|---|---|
| public Entry(ClassLoader classLoader, Enhancer enhancer) | |