protected static class AgentBuilder.RedefinitionStrategy.Delegate.ForRedefinition extends AgentBuilder.RedefinitionStrategy.Delegate<ClassDefinition>
AgentBuilder.RedefinitionStrategy.Delegate.ForRedefinition, AgentBuilder.RedefinitionStrategy.Delegate.ForRetransformationtransformation, types| Modifier | Constructor and Description |
|---|---|
protected |
ForRedefinition(AgentBuilder.Default.Transformation transformation)
Creates a new delegate for a redefinition.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doApply(List<ClassDefinition> transformations,
Instrumentation instrumentation)
Applies a type redefinition.
|
protected ClassDefinition |
transform(Class<?> type,
AgentBuilder.LocationStrategy locationStrategy)
Turns a type into a transformation-ready primitive of the current redefinition process.
|
apply, consider, consider, toStringprotected ForRedefinition(AgentBuilder.Default.Transformation transformation)
transformation - The transformation of the built agent.protected ClassDefinition transform(Class<?> type, AgentBuilder.LocationStrategy locationStrategy) throws IOException
AgentBuilder.RedefinitionStrategy.Delegatetransform in class AgentBuilder.RedefinitionStrategy.Delegate<ClassDefinition>type - The type to transform.locationStrategy - The location strategy to use.IOException - If an I/O error occured.protected void doApply(List<ClassDefinition> transformations, Instrumentation instrumentation) throws UnmodifiableClassException, ClassNotFoundException
AgentBuilder.RedefinitionStrategy.DelegatedoApply in class AgentBuilder.RedefinitionStrategy.Delegate<ClassDefinition>transformations - The transformations to apply.instrumentation - The instrumentation instance to apply the redefinition on.UnmodifiableClassException - If a class was not modifiable.ClassNotFoundException - If a class was not found.Copyright © 2014–2016. All rights reserved.