Package net.bytebuddy.agent.builder
Enum AgentBuilder.RedefinitionStrategy.ResubmissionEnforcer.Disabled
java.lang.Object
java.lang.Enum<AgentBuilder.RedefinitionStrategy.ResubmissionEnforcer.Disabled>
net.bytebuddy.agent.builder.AgentBuilder.RedefinitionStrategy.ResubmissionEnforcer.Disabled
- All Implemented Interfaces:
Serializable
,Comparable<AgentBuilder.RedefinitionStrategy.ResubmissionEnforcer.Disabled>
,java.lang.constant.Constable
,AgentBuilder.RedefinitionStrategy.ResubmissionEnforcer
- Enclosing interface:
AgentBuilder.RedefinitionStrategy.ResubmissionEnforcer
public static enum AgentBuilder.RedefinitionStrategy.ResubmissionEnforcer.Disabled
extends Enum<AgentBuilder.RedefinitionStrategy.ResubmissionEnforcer.Disabled>
implements AgentBuilder.RedefinitionStrategy.ResubmissionEnforcer
A resubmission enforcer that does not consider non-loaded classes.
-
Nested Class Summary
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.ResubmissionEnforcer
AgentBuilder.RedefinitionStrategy.ResubmissionEnforcer.Disabled
-
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
isEnforced
(String typeName, ClassLoader classLoader, JavaModule module, Class<?> classBeingRedefined) Returnstrue
if a class should be scheduled for resubmission.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
-
Disabled
private Disabled()
-
-
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
-
isEnforced
public boolean isEnforced(String typeName, @MaybeNull ClassLoader classLoader, @MaybeNull JavaModule module, @MaybeNull Class<?> classBeingRedefined) Returnstrue
if a class should be scheduled for resubmission.- Specified by:
isEnforced
in interfaceAgentBuilder.RedefinitionStrategy.ResubmissionEnforcer
- Parameters:
typeName
- The name of the instrumented class.classLoader
- The class loader of the instrumented class ornull
if the boot loader.module
- The module of the instrumented class ornull
if the module system is not supported.classBeingRedefined
- The class to be redefined ornull
if the current type is loaded for the first time.- Returns:
true
if the class should be scheduled for resubmission.
-