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.ResubmissionEnforcerA 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 classAgentBuilder.RedefinitionStrategy.ResubmissionEnforcer.DisabledA resubmission enforcer that does not consider non-loaded classes.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisEnforced(java.lang.String typeName, java.lang.ClassLoader classLoader, JavaModule module, java.lang.Class<?> classBeingRedefined)Returnstrueif 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)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.
-
-