Package net.bytebuddy.agent.builder
Interface AgentBuilder.RedefinitionStrategy.ResubmissionEnforcer
-
- All Known Implementing Classes:
AgentBuilder.RedefinitionStrategy.ResubmissionEnforcer.Disabled
,AgentBuilder.RedefinitionStrategy.ResubmissionStrategy.Enabled.Resubmitter
- Enclosing class:
- AgentBuilder.RedefinitionStrategy
protected static interface AgentBuilder.RedefinitionStrategy.ResubmissionEnforcer
A resubmission enforcer determines if a non-loaded class should be scheduled for resubmission or be treated upon first load.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
AgentBuilder.RedefinitionStrategy.ResubmissionEnforcer.Disabled
A resubmission enforcer that does not consider non-loaded classes.
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Method Detail
-
isEnforced
boolean isEnforced(java.lang.String typeName, @MaybeNull java.lang.ClassLoader classLoader, @MaybeNull JavaModule module, @MaybeNull java.lang.Class<?> classBeingRedefined)
Returnstrue
if a class should be scheduled for resubmission.- 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.
-
-