public static enum AgentBuilder.RedefinitionStrategy.DiscoveryStrategy.Reiterating.WithSortOrderAssumption extends Enum<AgentBuilder.RedefinitionStrategy.DiscoveryStrategy.Reiterating.WithSortOrderAssumption> implements AgentBuilder.RedefinitionStrategy.DiscoveryStrategy
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.
Important: While this increases the performance of reiteration, it relies on an implementation detail of the JVM. Also, this strategy does not consider the possibility of classes being unloaded during reiteration. For these reasons, this strategy has to be used with care!
Modifier and Type | Class and Description |
---|---|
protected static class |
AgentBuilder.RedefinitionStrategy.DiscoveryStrategy.Reiterating.WithSortOrderAssumption.OrderedReiteratingIterable
An iterable that reiterates over an array of loaded classes by the previously observed length.
|
protected static class |
AgentBuilder.RedefinitionStrategy.DiscoveryStrategy.Reiterating.WithSortOrderAssumption.OrderedReiteratingIterator
An iterator that reiterates over an array of loaded classes by the previously observed length.
|
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.WithSortOrderAssumption |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AgentBuilder.RedefinitionStrategy.DiscoveryStrategy.Reiterating.WithSortOrderAssumption[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AgentBuilder.RedefinitionStrategy.DiscoveryStrategy.Reiterating.WithSortOrderAssumption INSTANCE
public static AgentBuilder.RedefinitionStrategy.DiscoveryStrategy.Reiterating.WithSortOrderAssumption[] values()
for (AgentBuilder.RedefinitionStrategy.DiscoveryStrategy.Reiterating.WithSortOrderAssumption c : AgentBuilder.RedefinitionStrategy.DiscoveryStrategy.Reiterating.WithSortOrderAssumption.values()) System.out.println(c);
public static AgentBuilder.RedefinitionStrategy.DiscoveryStrategy.Reiterating.WithSortOrderAssumption 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.