public static enum AgentBuilder.RedefinitionStrategy.DiscoveryStrategy.Reiterating extends Enum<AgentBuilder.RedefinitionStrategy.DiscoveryStrategy.Reiterating> implements AgentBuilder.RedefinitionStrategy.DiscoveryStrategy
Instrumentation.getAllLoadedClasses()
. For each reiteration,
this strategy checks if additional types were loaded after the previously supplied types. Doing so, types that were loaded during
instrumentations can be retransformed as such types are not passed to any class file transformer.Modifier and Type | Class and Description |
---|---|
protected static class |
AgentBuilder.RedefinitionStrategy.DiscoveryStrategy.Reiterating.ReiteratingIterable
An iterable that returns any loaded types and checks if any additional types were loaded during the last instrumentation.
|
protected static class |
AgentBuilder.RedefinitionStrategy.DiscoveryStrategy.Reiterating.ReiteratingIterator
A reiterating iterator that considers types that were loaded during an instrumentation.
|
static class |
AgentBuilder.RedefinitionStrategy.DiscoveryStrategy.Reiterating.WithSortOrderAssumption
A discovery strategy that simplifies the application of
AgentBuilder.RedefinitionStrategy.DiscoveryStrategy.Reiterating by assuming that the
loaded classes that are returned by Instrumentation.getAllLoadedClasses() are always
returned in the same order. |
AgentBuilder.RedefinitionStrategy.DiscoveryStrategy.Explicit, AgentBuilder.RedefinitionStrategy.DiscoveryStrategy.Reiterating, AgentBuilder.RedefinitionStrategy.DiscoveryStrategy.SinglePass
Enum Constant and Description |
---|
INSTANCE
The singleton instance.
|
Modifier and Type | Method and Description |
---|---|
Iterable<Iterable<Class<?>>> |
resolve(Instrumentation instrumentation)
Resolves an iterable of types to retransform.
|
static AgentBuilder.RedefinitionStrategy.DiscoveryStrategy.Reiterating |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AgentBuilder.RedefinitionStrategy.DiscoveryStrategy.Reiterating[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AgentBuilder.RedefinitionStrategy.DiscoveryStrategy.Reiterating INSTANCE
public static AgentBuilder.RedefinitionStrategy.DiscoveryStrategy.Reiterating[] values()
for (AgentBuilder.RedefinitionStrategy.DiscoveryStrategy.Reiterating c : AgentBuilder.RedefinitionStrategy.DiscoveryStrategy.Reiterating.values()) System.out.println(c);
public static AgentBuilder.RedefinitionStrategy.DiscoveryStrategy.Reiterating valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic Iterable<Iterable<Class<?>>> resolve(Instrumentation instrumentation)
resolve
in interface AgentBuilder.RedefinitionStrategy.DiscoveryStrategy
instrumentation
- The instrumentation instance used for the redefinition.Copyright © 2014–2025. All rights reserved.