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:
java.io.Serializable
,java.lang.Comparable<AgentBuilder.RedefinitionStrategy.ResubmissionEnforcer.Disabled>
,AgentBuilder.RedefinitionStrategy.ResubmissionEnforcer
- Enclosing interface:
- AgentBuilder.RedefinitionStrategy.ResubmissionEnforcer
public static enum AgentBuilder.RedefinitionStrategy.ResubmissionEnforcer.Disabled extends java.lang.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 interface net.bytebuddy.agent.builder.AgentBuilder.RedefinitionStrategy.ResubmissionEnforcer
AgentBuilder.RedefinitionStrategy.ResubmissionEnforcer.Disabled
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
The singleton instance.
-
Constructor Summary
Constructors Modifier Constructor Description private
Disabled()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isEnforced(java.lang.String typeName, java.lang.ClassLoader classLoader, JavaModule module, java.lang.Class<?> classBeingRedefined)
Returnstrue
if a class should be scheduled for resubmission.static AgentBuilder.RedefinitionStrategy.ResubmissionEnforcer.Disabled
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static AgentBuilder.RedefinitionStrategy.ResubmissionEnforcer.Disabled[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final AgentBuilder.RedefinitionStrategy.ResubmissionEnforcer.Disabled INSTANCE
The singleton instance.
-
-
Method Detail
-
values
public static AgentBuilder.RedefinitionStrategy.ResubmissionEnforcer.Disabled[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AgentBuilder.RedefinitionStrategy.ResubmissionEnforcer.Disabled c : AgentBuilder.RedefinitionStrategy.ResubmissionEnforcer.Disabled.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AgentBuilder.RedefinitionStrategy.ResubmissionEnforcer.Disabled valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
isEnforced
public boolean isEnforced(java.lang.String typeName, java.lang.ClassLoader classLoader, JavaModule module, java.lang.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.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.
-
-