Package net.bytebuddy.agent.builder
Class AgentBuilder.TypeStrategy.ForBuildEntryPoint
java.lang.Object
net.bytebuddy.agent.builder.AgentBuilder.TypeStrategy.ForBuildEntryPoint
- All Implemented Interfaces:
AgentBuilder.TypeStrategy
- Enclosing interface:
AgentBuilder.TypeStrategy
@Enhance
public static class AgentBuilder.TypeStrategy.ForBuildEntryPoint
extends Object
implements AgentBuilder.TypeStrategy
A type strategy that applies a build
EntryPoint
.-
Nested Class Summary
Nested classes/interfaces inherited from interface net.bytebuddy.agent.builder.AgentBuilder.TypeStrategy
AgentBuilder.TypeStrategy.Default, AgentBuilder.TypeStrategy.ForBuildEntryPoint
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionForBuildEntryPoint
(EntryPoint entryPoint) Creates a new type strategy for an entry point. -
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.
-
Field Details
-
entryPoint
The entry point to apply.
-
-
Constructor Details
-
ForBuildEntryPoint
Creates a new type strategy for an entry point.- Parameters:
entryPoint
- The entry point to apply.
-
-
Method Details
-
builder
public 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.- Specified by:
builder
in interfaceAgentBuilder.TypeStrategy
- 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 ornull
if the type is loaded by the bootstrap loader.module
- The instrumented type's module ornull
if it is not declared by a module.protectionDomain
- The instrumented type's protection domain ornull
if it does not define a protection domain.- Returns:
- A type builder for the given arguments.
-