| Package | Description |
|---|---|
| net.bytebuddy.agent.builder |
An agent builder is used to easily implement load-time class-transformations using a Java agent.
|
| Modifier and Type | Class and Description |
|---|---|
static class |
AgentBuilder.TypeLocator.ClassLoading
A type locator that loads referenced classes instead of describing unloaded versions.
|
static class |
AgentBuilder.TypeLocator.Default
A default implementation of a
AgentBuilder.TypeLocator that
is using a TypePool.Default with a
TypePool.CacheProvider.Simple and a
ClassFileLocator.ForClassLoader. |
static class |
AgentBuilder.TypeLocator.WithTypePoolCache
A type locator that uses type pools but allows for the configuration of a custom cache provider by class loader.
|
static class |
AgentBuilder.TypeLocator.WithTypePoolCache.Simple
An implementation of a type locator
AgentBuilder.TypeLocator.WithTypePoolCache (note documentation of the linked class) that is based on a
ConcurrentMap. |
| Modifier and Type | Method and Description |
|---|---|
TypeDescription |
AgentBuilder.DescriptionStrategy.apply(Class<?> type,
AgentBuilder.TypeLocator typeLocator)
Describes the given type.
|
void |
AgentBuilder.RedefinitionStrategy.Collector.apply(Instrumentation instrumentation,
AgentBuilder.TypeLocator typeLocator,
AgentBuilder.Listener listener)
Applies this collector.
|
void |
AgentBuilder.RedefinitionStrategy.Collector.ForRedefinition.apply(Instrumentation instrumentation,
AgentBuilder.TypeLocator typeLocator,
AgentBuilder.Listener listener) |
void |
AgentBuilder.RedefinitionStrategy.Collector.ForRetransformation.apply(Instrumentation instrumentation,
AgentBuilder.TypeLocator typeLocator,
AgentBuilder.Listener listener) |
TypeDescription |
AgentBuilder.DescriptionStrategy.apply(String typeName,
Class<?> typeBeingRedefined,
AgentBuilder.TypeLocator typeLocator,
ClassLoader classLoader,
ClassFileLocator classFileLocator)
Describes the given type.
|
ClassFileTransformer |
AgentBuilder.Default.ExecutingTransformer.Factory.make(ByteBuddy byteBuddy,
AgentBuilder.TypeLocator typeLocator,
AgentBuilder.TypeStrategy typeStrategy,
AgentBuilder.Listener listener,
AgentBuilder.Default.NativeMethodStrategy nativeMethodStrategy,
AccessControlContext accessControlContext,
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.Listener listener,
AgentBuilder.Default.NativeMethodStrategy nativeMethodStrategy,
AccessControlContext accessControlContext,
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.Listener listener,
AgentBuilder.Default.NativeMethodStrategy nativeMethodStrategy,
AccessControlContext accessControlContext,
AgentBuilder.InitializationStrategy initializationStrategy,
AgentBuilder.Default.BootstrapInjectionStrategy bootstrapInjectionStrategy,
AgentBuilder.DescriptionStrategy descriptionStrategy,
AgentBuilder.RawMatcher ignoredTypeMatcher,
AgentBuilder.Default.Transformation transformation) |
AgentBuilder |
AgentBuilder.with(AgentBuilder.TypeLocator typeLocator)
Defines the use of the given type locator for locating binary data to given class names.
|
AgentBuilder |
AgentBuilder.Default.with(AgentBuilder.TypeLocator typeLocator) |
AgentBuilder |
AgentBuilder.Default.Delegator.with(AgentBuilder.TypeLocator typeLocator) |
Copyright © 2014–2016. All rights reserved.