public interface ResettableClassFileTransformer extends ClassFileTransformer
Modifier and Type | Interface and Description |
---|---|
static class |
ResettableClassFileTransformer.AbstractBase
An abstract base implementation of a
ResettableClassFileTransformer . |
Modifier and Type | Method and Description |
---|---|
boolean |
reset(Instrumentation instrumentation,
AgentBuilder.RedefinitionStrategy redefinitionStrategy)
Deregisters this class file transformer and redefines any transformed class to its state without this
class file transformer applied, if the supplied redefinition strategy is enabled.
|
boolean |
reset(Instrumentation instrumentation,
AgentBuilder.RedefinitionStrategy redefinitionStrategy,
AgentBuilder.RedefinitionStrategy.BatchAllocator redefinitionBatchAllocator)
Deregisters this class file transformer and redefines any transformed class to its state without this
class file transformer applied, if the supplied redefinition strategy is enabled.
|
boolean |
reset(Instrumentation instrumentation,
AgentBuilder.RedefinitionStrategy redefinitionStrategy,
AgentBuilder.RedefinitionStrategy.BatchAllocator redefinitionBatchAllocator,
AgentBuilder.RedefinitionStrategy.Listener redefinitionListener)
Deregisters this class file transformer and redefines any transformed class to its state without this
class file transformer applied, if the supplied redefinition strategy is enabled.
|
transform
boolean reset(Instrumentation instrumentation, AgentBuilder.RedefinitionStrategy redefinitionStrategy)
Deregisters this class file transformer and redefines any transformed class to its state without this class file transformer applied, if the supplied redefinition strategy is enabled.
Important: Most JVMs do not support changes of a class's structure after a class was already
loaded. Therefore, it is typically required that this class file transformer was built while enabling
AgentBuilder.disableClassFormatChanges()
.
instrumentation
- The instrumentation instance from which to deregister the transformer.redefinitionStrategy
- The redefinition to apply.true
if a reset was applied and this transformer was not previously removed.boolean reset(Instrumentation instrumentation, AgentBuilder.RedefinitionStrategy redefinitionStrategy, AgentBuilder.RedefinitionStrategy.BatchAllocator redefinitionBatchAllocator)
Deregisters this class file transformer and redefines any transformed class to its state without this class file transformer applied, if the supplied redefinition strategy is enabled.
Important: Most JVMs do not support changes of a class's structure after a class was already
loaded. Therefore, it is typically required that this class file transformer was built while enabling
AgentBuilder.disableClassFormatChanges()
.
instrumentation
- The instrumentation instance from which to deregister the transformer.redefinitionStrategy
- The redefinition to apply.redefinitionBatchAllocator
- The batch allocator to use.true
if a reset was applied and this transformer was not previously removed.boolean reset(Instrumentation instrumentation, AgentBuilder.RedefinitionStrategy redefinitionStrategy, AgentBuilder.RedefinitionStrategy.BatchAllocator redefinitionBatchAllocator, AgentBuilder.RedefinitionStrategy.Listener redefinitionListener)
Deregisters this class file transformer and redefines any transformed class to its state without this class file transformer applied, if the supplied redefinition strategy is enabled.
Important: Most JVMs do not support changes of a class's structure after a class was already
loaded. Therefore, it is typically required that this class file transformer was built while enabling
AgentBuilder.disableClassFormatChanges()
.
instrumentation
- The instrumentation instance from which to deregister the transformer.redefinitionStrategy
- The redefinition to apply.redefinitionBatchAllocator
- The batch allocator to use.redefinitionListener
- The redefinition listener to apply.true
if a reset was applied and this transformer was not previously removed.Copyright © 2014–2017. All rights reserved.