@JavaDispatcher.Proxied(value="java.lang.instrument.Instrumentation") protected static interface AgentBuilder.RedefinitionStrategy.Dispatcher
Modifier and Type | Method and Description |
---|---|
boolean |
isModifiableClass(Instrumentation instrumentation,
Class<?> type)
Checks if the supplied type is modifiable.
|
boolean |
isRetransformClassesSupported(Instrumentation instrumentation)
Checks if retransformation is supported for the supplied instrumentation instance.
|
void |
retransformClasses(Instrumentation instrumentation,
Class<?>[] type)
Retransforms the supplied classes.
|
boolean isModifiableClass(Instrumentation instrumentation, Class<?> type)
instrumentation
- The instrumentation instance available.type
- The type to check for modifiability.true
if the supplied type is modifiable.@JavaDispatcher.Defaults boolean isRetransformClassesSupported(Instrumentation instrumentation)
instrumentation
- The instrumentation instance available.true
if the supplied instance supports retransformation.void retransformClasses(Instrumentation instrumentation, Class<?>[] type) throws UnmodifiableClassException
instrumentation
- The instrumentation instance to use for retransformation.type
- The types to retransform.UnmodifiableClassException
- If the supplied classes cannot be retransformed.Copyright © 2014–2024. All rights reserved.