Package | Description |
---|---|
net.bytebuddy |
Byte Buddy is a library for creating Java classes at runtime of a Java program.
|
net.bytebuddy.agent.builder |
An agent builder is used to easily implement load-time class-transformations using a Java agent.
|
Modifier and Type | Method and Description |
---|---|
ByteBuddy |
ByteBuddy.ignore(ElementMatcher<? super MethodDescription> ignoredMethods)
Creates a new configuration where any
MethodDescription that matches the provided method matcher is excluded
from instrumentation. |
ByteBuddy |
ByteBuddy.ignore(LatentMatcher<? super MethodDescription> ignoredMethods)
Creates a new configuration where any
MethodDescription that matches the provided method matcher is excluded
from instrumentation. |
ByteBuddy |
ByteBuddy.with(AnnotationRetention annotationRetention)
Creates a new configuration where annotations that are found in an existing class file are or are not preserved
in the format they are discovered, i.e. rewritten in the format they were already present in the class file.
|
ByteBuddy |
ByteBuddy.with(AnnotationValueFilter.Factory annotationValueFilterFactory)
Creates a new configuration where annotation values are written according to the given filter factory.
|
ByteBuddy |
ByteBuddy.with(AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy)
Creates a new configuration where auxiliary types are named by applying the given naming strategy.
|
ByteBuddy |
ByteBuddy.with(ClassFileVersion classFileVersion)
Creates a new configuration where all class files that are not based on an existing class file are created
using the supplied class file version.
|
ByteBuddy |
ByteBuddy.with(Implementation.Context.Factory implementationContextFactory)
Creates a new configuration where the
Implementation.Context of any created
type is a product of the given implementation context factory. |
ByteBuddy |
ByteBuddy.with(MethodGraph.Compiler methodGraphCompiler)
Creates a new configuration where the
MethodGraph.Compiler is used for creating a MethodGraph
of the instrumented type. |
ByteBuddy |
ByteBuddy.with(NamingStrategy namingStrategy)
Creates a new configuration where new types are named by applying the given naming strategy.
|
ByteBuddy |
ByteBuddy.with(TypeValidation typeValidation)
Creates a new configuration that applies the supplied type validation.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
AgentBuilder.Default.Transformation.Resolution.apply(AgentBuilder.InitializationStrategy initializationStrategy,
ClassFileLocator classFileLocator,
AgentBuilder.TypeStrategy typeStrategy,
ByteBuddy byteBuddy,
AgentBuilder.Default.NativeMethodStrategy methodNameTransformer,
AgentBuilder.Default.BootstrapInjectionStrategy bootstrapInjectionStrategy,
AccessControlContext accessControlContext,
AgentBuilder.Listener listener)
Transforms a type or returns
null if a type is not to be transformed. |
byte[] |
AgentBuilder.Default.Transformation.Resolution.Unresolved.apply(AgentBuilder.InitializationStrategy initializationStrategy,
ClassFileLocator classFileLocator,
AgentBuilder.TypeStrategy typeStrategy,
ByteBuddy byteBuddy,
AgentBuilder.Default.NativeMethodStrategy methodNameTransformer,
AgentBuilder.Default.BootstrapInjectionStrategy bootstrapInjectionStrategy,
AccessControlContext accessControlContext,
AgentBuilder.Listener listener) |
byte[] |
AgentBuilder.Default.Transformation.Simple.Resolution.apply(AgentBuilder.InitializationStrategy initializationStrategy,
ClassFileLocator classFileLocator,
AgentBuilder.TypeStrategy typeStrategy,
ByteBuddy byteBuddy,
AgentBuilder.Default.NativeMethodStrategy methodNameTransformer,
AgentBuilder.Default.BootstrapInjectionStrategy bootstrapInjectionStrategy,
AccessControlContext accessControlContext,
AgentBuilder.Listener listener) |
protected abstract void |
AgentBuilder.LambdaInstrumentationStrategy.apply(ByteBuddy byteBuddy,
Instrumentation instrumentation,
ClassFileTransformer classFileTransformer)
Applies a transformation to lambda instances if applicable.
|
DynamicType.Builder<?> |
AgentBuilder.TypeStrategy.builder(TypeDescription typeDescription,
ByteBuddy byteBuddy,
ClassFileLocator classFileLocator,
MethodNameTransformer methodNameTransformer)
Creates a type builder for a given type.
|
ClassFileTransformer |
AgentBuilder.Default.ExecutingTransformer.Factory.make(ByteBuddy byteBuddy,
AgentBuilder.TypeLocator typeLocator,
AgentBuilder.TypeStrategy typeStrategy,
AgentBuilder.LocationStrategy locationStrategy,
AgentBuilder.Listener listener,
AgentBuilder.Default.NativeMethodStrategy nativeMethodStrategy,
AgentBuilder.InitializationStrategy initializationStrategy,
AgentBuilder.Default.BootstrapInjectionStrategy bootstrapInjectionStrategy,
AgentBuilder.DescriptionStrategy descriptionStrategy,
AgentBuilder.RawMatcher ignoredTypeMatcher,
AgentBuilder.Default.Transformation transformation)
Creates a new class file transformer for the current VM.
|
ClassFileTransformer |
AgentBuilder.Default.ExecutingTransformer.Factory.ForJava9CapableVm.make(ByteBuddy byteBuddy,
AgentBuilder.TypeLocator typeLocator,
AgentBuilder.TypeStrategy typeStrategy,
AgentBuilder.LocationStrategy locationStrategy,
AgentBuilder.Listener listener,
AgentBuilder.Default.NativeMethodStrategy nativeMethodStrategy,
AgentBuilder.InitializationStrategy initializationStrategy,
AgentBuilder.Default.BootstrapInjectionStrategy bootstrapInjectionStrategy,
AgentBuilder.DescriptionStrategy descriptionStrategy,
AgentBuilder.RawMatcher ignoredTypeMatcher,
AgentBuilder.Default.Transformation transformation) |
ClassFileTransformer |
AgentBuilder.Default.ExecutingTransformer.Factory.ForLegacyVm.make(ByteBuddy byteBuddy,
AgentBuilder.TypeLocator typeLocator,
AgentBuilder.TypeStrategy typeStrategy,
AgentBuilder.LocationStrategy locationStrategy,
AgentBuilder.Listener listener,
AgentBuilder.Default.NativeMethodStrategy nativeMethodStrategy,
AgentBuilder.InitializationStrategy initializationStrategy,
AgentBuilder.Default.BootstrapInjectionStrategy bootstrapInjectionStrategy,
AgentBuilder.DescriptionStrategy descriptionStrategy,
AgentBuilder.RawMatcher ignoredTypeMatcher,
AgentBuilder.Default.Transformation transformation) |
AgentBuilder |
AgentBuilder.with(ByteBuddy byteBuddy)
Defines the given
ByteBuddy instance to be used by the created agent. |
AgentBuilder |
AgentBuilder.Default.with(ByteBuddy byteBuddy) |
AgentBuilder |
AgentBuilder.Default.Delegator.with(ByteBuddy byteBuddy) |
Copyright © 2014–2016. All rights reserved.