Interface AgentBuilder.Default.WarmupStrategy
- All Known Implementing Classes:
AgentBuilder.Default.WarmupStrategy.Enabled, AgentBuilder.Default.WarmupStrategy.NoOp
- Enclosing class:
AgentBuilder.Default
protected static interface AgentBuilder.Default.WarmupStrategy
A strategy to warm up a
ClassFileTransformer before using it to eagerly load classes and to avoid
circularity errors when classes are loaded during actual transformation for the first time.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classAn enabled warmup strategy.static enumA non-operational warmup strategy. -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(ResettableClassFileTransformer classFileTransformer, AgentBuilder.LocationStrategy locationStrategy, AgentBuilder.RedefinitionStrategy redefinitionStrategy, AgentBuilder.CircularityLock circularityLock, AgentBuilder.InstallationListener listener) Applies this warm up strategy.with(Collection<Class<?>> types) Adds the provided types to this warmup strategy.
-
Method Details
-
apply
void apply(ResettableClassFileTransformer classFileTransformer, AgentBuilder.LocationStrategy locationStrategy, AgentBuilder.RedefinitionStrategy redefinitionStrategy, AgentBuilder.CircularityLock circularityLock, AgentBuilder.InstallationListener listener) Applies this warm up strategy.- Parameters:
classFileTransformer- The class file transformer to warm up.locationStrategy- The location strategy to use.redefinitionStrategy- The redefinition strategy being used.circularityLock- The circularity lock to use.listener- The listener to notify over warmup events.
-
with
Adds the provided types to this warmup strategy.- Parameters:
types- The types to add.- Returns:
- An appropriate warmup strategy.
-