protected static interface AgentBuilder.RedefinitionStrategy.Dispatcher
Modifier and Type | Interface and Description |
---|---|
static class |
AgentBuilder.RedefinitionStrategy.Dispatcher.CreationAction
An action for creating a dispatcher.
|
static class |
AgentBuilder.RedefinitionStrategy.Dispatcher.ForJava6CapableVm
A dispatcher for a Java 6 capable VM.
|
static class |
AgentBuilder.RedefinitionStrategy.Dispatcher.ForLegacyVm
A dispatcher for a legacy VM.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isModifiableClass(java.lang.instrument.Instrumentation instrumentation,
java.lang.Class<?> type)
Checks if the supplied type is modifiable.
|
boolean |
isRetransformClassesSupported(java.lang.instrument.Instrumentation instrumentation)
Checks if retransformation is supported for the supplied instrumentation instance.
|
void |
retransformClasses(java.lang.instrument.Instrumentation instrumentation,
java.lang.Class<?>[] type)
Retransforms the supplied classes.
|
boolean isModifiableClass(java.lang.instrument.Instrumentation instrumentation, java.lang.Class<?> type)
instrumentation
- The instrumentation instance available.type
- The type to check for modifiability.true
if the supplied type is modifiable.boolean isRetransformClassesSupported(java.lang.instrument.Instrumentation instrumentation)
instrumentation
- The instrumentation instance available.true
if the supplied instance supports retransformation.void retransformClasses(java.lang.instrument.Instrumentation instrumentation, java.lang.Class<?>[] type) throws java.lang.instrument.UnmodifiableClassException
instrumentation
- The instrumentation instance to use for retransformation.type
- The types to retransform.java.lang.instrument.UnmodifiableClassException
- If the supplied classes cannot be retransformed.