Interface AgentBuilder.TypeStrategy
- All Known Implementing Classes:
AgentBuilder.TypeStrategy.Default, AgentBuilder.TypeStrategy.ForBuildEntryPoint
- Enclosing interface:
AgentBuilder
public static interface AgentBuilder.TypeStrategy
A type strategy is responsible for creating a type builder for a type that is being instrumented.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumDefault implementations of type strategies.static classA type strategy that applies a buildEntryPoint. -
Method Summary
Modifier and TypeMethodDescriptionbuilder(TypeDescription typeDescription, ByteBuddy byteBuddy, ClassFileLocator classFileLocator, MethodNameTransformer methodNameTransformer, ClassLoader classLoader, JavaModule module, ProtectionDomain protectionDomain) Creates a type builder for a given type.
-
Method Details
-
builder
DynamicType.Builder<?> builder(TypeDescription typeDescription, ByteBuddy byteBuddy, ClassFileLocator classFileLocator, MethodNameTransformer methodNameTransformer, @MaybeNull ClassLoader classLoader, @MaybeNull JavaModule module, @MaybeNull ProtectionDomain protectionDomain) Creates a type builder for a given type.- Parameters:
typeDescription- The type being instrumented.byteBuddy- The Byte Buddy configuration.classFileLocator- The class file locator to use.methodNameTransformer- The method name transformer to use.classLoader- The instrumented type's class loader ornullif the type is loaded by the bootstrap loader.module- The instrumented type's module ornullif it is not declared by a module.protectionDomain- The instrumented type's protection domain ornullif it does not define a protection domain.- Returns:
- A type builder for the given arguments.
-