public static interface AgentBuilder.ClassFileBufferStrategy
| Modifier and Type | Interface and Description |
|---|---|
static class |
AgentBuilder.ClassFileBufferStrategy.Default
An implementation of default class file buffer strategy.
|
| Modifier and Type | Method and Description |
|---|---|
ClassFileLocator |
resolve(String name,
byte[] binaryRepresentation,
ClassLoader classLoader,
JavaModule module,
ProtectionDomain protectionDomain)
Resolves a class file locator for the class file buffer that is provided to the class file transformer.
|
TypePool |
typePool(AgentBuilder.PoolStrategy poolStrategy,
ClassFileLocator classFileLocator,
ClassLoader classLoader,
String name)
Resolves the type pool for a given type name by the supplied
AgentBuilder.PoolStrategy. |
ClassFileLocator resolve(String name, byte[] binaryRepresentation, @MaybeNull ClassLoader classLoader, @MaybeNull JavaModule module, @MaybeNull ProtectionDomain protectionDomain)
name - The instrumented type's binary name.binaryRepresentation - The instrumented type's binary representation.classLoader - The instrumented type's class loader or null if the type is loaded by the bootstrap class loader.module - The instrumented type's module or null if the current VM does not support modules.protectionDomain - The instrumented type's protection domain or null if not availableTypePool typePool(AgentBuilder.PoolStrategy poolStrategy, ClassFileLocator classFileLocator, @MaybeNull ClassLoader classLoader, String name)
AgentBuilder.PoolStrategy.poolStrategy - The pool strategy to use.classFileLocator - The class file locator to use.classLoader - The class loader to use.name - The name of the type for which the type pool is resolved.Copyright © 2014–2024. All rights reserved.