| 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.RedefinitionStrategy.Listener.Adapter
A listener adapter that offers non-operational implementations of all listener methods.
|
static class |
AgentBuilder.RedefinitionStrategy.Listener.BatchReallocator
A batch reallocator allows to split up a failed retransformation into additional batches which are reenqueed to the
current retransformation process.
|
static class |
AgentBuilder.RedefinitionStrategy.Listener.Compound
A compound listener that delegates events to several listeners.
|
static class |
AgentBuilder.RedefinitionStrategy.Listener.ErrorEscalating
A listener that halts a retransformation process upon an exception.
|
static class |
AgentBuilder.RedefinitionStrategy.Listener.NoOp
A non-operational listener.
|
static class |
AgentBuilder.RedefinitionStrategy.Listener.Pausing
A listener that invokes
Thread.sleep(long) prior to every batch but the first batch. |
static class |
AgentBuilder.RedefinitionStrategy.Listener.StreamWriting
A listener that writes events to a
PrintStream. |
static class |
AgentBuilder.RedefinitionStrategy.Listener.Yielding
A listener that invokes
Thread.yield() prior to every batch but the first batch. |
| Modifier and Type | Field and Description |
|---|---|
protected AgentBuilder.RedefinitionStrategy.Listener |
AgentBuilder.Default.redefinitionListener
The redefinition listener for the redefinition strategy to apply.
|
| Modifier and Type | Method and Description |
|---|---|
static AgentBuilder.RedefinitionStrategy.Listener |
AgentBuilder.RedefinitionStrategy.Listener.Pausing.of(long value,
TimeUnit timeUnit)
Creates a listener that pauses for the specified amount of time.
|
static AgentBuilder.RedefinitionStrategy.Listener |
AgentBuilder.RedefinitionStrategy.Listener.BatchReallocator.splitting()
Creates a batch allocator that splits any batch into two parts and resubmits these parts as two batches.
|
static AgentBuilder.RedefinitionStrategy.Listener |
AgentBuilder.RedefinitionStrategy.Listener.StreamWriting.toSystemError()
Writes the stream result to
System.err. |
static AgentBuilder.RedefinitionStrategy.Listener |
AgentBuilder.RedefinitionStrategy.Listener.StreamWriting.toSystemOut()
Writes the stream result to
System.out. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
AgentBuilder.RedefinitionStrategy.Collector.apply(Instrumentation instrumentation,
AgentBuilder.CircularityLock circularityLock,
AgentBuilder.LocationStrategy locationStrategy,
AgentBuilder.Listener listener,
AgentBuilder.RedefinitionStrategy.BatchAllocator redefinitionBatchAllocator,
AgentBuilder.RedefinitionStrategy.Listener redefinitionListener)
Applies all types that this collector collected.
|
void |
AgentBuilder.RedefinitionStrategy.apply(Instrumentation instrumentation,
AgentBuilder.Listener listener,
AgentBuilder.CircularityLock circularityLock,
AgentBuilder.PoolStrategy poolStrategy,
AgentBuilder.LocationStrategy locationStrategy,
AgentBuilder.RedefinitionStrategy.BatchAllocator redefinitionBatchAllocator,
AgentBuilder.RedefinitionStrategy.Listener redefinitionListener,
AgentBuilder.LambdaInstrumentationStrategy lambdaInstrumentationStrategy,
AgentBuilder.DescriptionStrategy descriptionStrategy,
AgentBuilder.FallbackStrategy fallbackStrategy,
AgentBuilder.RawMatcher typeMatcher,
AgentBuilder.RawMatcher ignoredTypeMatcher)
Applies this redefinition strategy by submitting all loaded types to redefiniton.
|
boolean |
ResettableClassFileTransformer.reset(Instrumentation instrumentation,
AgentBuilder.RedefinitionStrategy redefinitionStrategy,
AgentBuilder.RedefinitionStrategy.BatchAllocator redefinitionBatchAllocator,
AgentBuilder.RedefinitionStrategy.Listener redefinitionListener)
Deregisters this class file transformer and redefines any transformed class to its state without this
class file transformer applied, if the supplied redefinition strategy is enabled.
|
boolean |
AgentBuilder.Default.ExecutingTransformer.reset(Instrumentation instrumentation,
AgentBuilder.RedefinitionStrategy redefinitionStrategy,
AgentBuilder.RedefinitionStrategy.BatchAllocator redefinitionBatchAllocator,
AgentBuilder.RedefinitionStrategy.Listener redefinitionListener) |
AgentBuilder.RedefinitionListenable |
AgentBuilder.RedefinitionListenable.with(AgentBuilder.RedefinitionStrategy.Listener redefinitionListener)
A redefinition listener is invoked before each batch of type redefinitions and on every error as well as
after the redefinition was completed.
|
AgentBuilder.RedefinitionListenable |
AgentBuilder.Default.Redefining.with(AgentBuilder.RedefinitionStrategy.Listener redefinitionListener) |
| Constructor and Description |
|---|
Compound(List<? extends AgentBuilder.RedefinitionStrategy.Listener> listeners)
Creates a new compound listener.
|
Copyright © 2014–2017. All rights reserved.