Package net.bytebuddy.agent.builder
Enum AgentBuilder.RedefinitionStrategy.DiscoveryStrategy.Reiterating
java.lang.Object
java.lang.Enum<AgentBuilder.RedefinitionStrategy.DiscoveryStrategy.Reiterating>
net.bytebuddy.agent.builder.AgentBuilder.RedefinitionStrategy.DiscoveryStrategy.Reiterating
- All Implemented Interfaces:
Serializable
,Comparable<AgentBuilder.RedefinitionStrategy.DiscoveryStrategy.Reiterating>
,java.lang.constant.Constable
,AgentBuilder.RedefinitionStrategy.DiscoveryStrategy
- Enclosing interface:
AgentBuilder.RedefinitionStrategy.DiscoveryStrategy
public static enum AgentBuilder.RedefinitionStrategy.DiscoveryStrategy.Reiterating
extends Enum<AgentBuilder.RedefinitionStrategy.DiscoveryStrategy.Reiterating>
implements AgentBuilder.RedefinitionStrategy.DiscoveryStrategy
A discovery strategy that considers all loaded types supplied by
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.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
An iterable that returns any loaded types and checks if any additional types were loaded during the last instrumentation.protected static class
A reiterating iterator that considers types that were loaded during an instrumentation.static enum
A discovery strategy that simplifies the application ofAgentBuilder.RedefinitionStrategy.DiscoveryStrategy.Reiterating
by assuming that the loaded classes that are returned byInstrumentation.getAllLoadedClasses()
are always returned in the same order.Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Nested classes/interfaces inherited from interface net.bytebuddy.agent.builder.AgentBuilder.RedefinitionStrategy.DiscoveryStrategy
AgentBuilder.RedefinitionStrategy.DiscoveryStrategy.Explicit, AgentBuilder.RedefinitionStrategy.DiscoveryStrategy.Reiterating, AgentBuilder.RedefinitionStrategy.DiscoveryStrategy.SinglePass
-
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionresolve
(Instrumentation instrumentation) Resolves an iterable of types to retransform.Returns the enum constant of this type with the specified name.values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
The singleton instance.
-
-
Constructor Details
-
Reiterating
private Reiterating()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
resolve
Resolves an iterable of types to retransform. Types might be loaded during a previous retransformation which might require multiple passes for a retransformation.- Specified by:
resolve
in interfaceAgentBuilder.RedefinitionStrategy.DiscoveryStrategy
- Parameters:
instrumentation
- The instrumentation instance used for the redefinition.- Returns:
- An iterable of types to consider for retransformation.
-