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 ClassesModifier and TypeInterfaceDescriptionstatic enum
A resubmission enforcer that does not consider non-loaded classes. -
Method Summary
Modifier and TypeMethodDescriptionboolean
isEnforced
(String typeName, ClassLoader classLoader, JavaModule module, Class<?> classBeingRedefined) Returnstrue
if a class should be scheduled for resubmission.
-
Method Details
-
isEnforced
boolean isEnforced(String typeName, @MaybeNull ClassLoader classLoader, @MaybeNull JavaModule module, @MaybeNull 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.
-