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 enumA resubmission enforcer that does not consider non-loaded classes. -
Method Summary
Modifier and TypeMethodDescriptionbooleanisEnforced(String typeName, ClassLoader classLoader, JavaModule module, Class<?> classBeingRedefined) Returnstrueif a class should be scheduled for resubmission.
-
Method Details
-
isEnforced
boolean isEnforced(String typeName, @MaybeNull ClassLoader classLoader, @MaybeNull JavaModule module, @MaybeNull Class<?> classBeingRedefined) Returnstrueif a class should be scheduled for resubmission.- Parameters:
typeName- The name of the instrumented class.classLoader- The class loader of the instrumented class ornullif the boot loader.module- The module of the instrumented class ornullif the module system is not supported.classBeingRedefined- The class to be redefined ornullif the current type is loaded for the first time.- Returns:
trueif the class should be scheduled for resubmission.
-