@JavaDispatcher.Proxied(value="java.lang.instrument.Instrumentation") protected static interface ClassFileLocator.ForInstrumentation.Dispatcher
Instrumentation API.| Modifier and Type | Method and Description | 
|---|---|
| void | addTransformer(Instrumentation instrumentation,
              ClassFileTransformer classFileTransformer,
              boolean canRetransform)Registers a transformer. | 
| boolean | isRetransformClassesSupported(Instrumentation instrumentation)Invokes the  Instrumentation#isRetransformClassesSupportedmethod. | 
| void | retransformClasses(Instrumentation instrumentation,
                  Class<?>[] type)Retransforms the supplied classes. | 
boolean isRetransformClassesSupported(Instrumentation instrumentation)
Instrumentation#isRetransformClassesSupported method.instrumentation - The instrumentation instance to invoke the method on.true if the supplied instrumentation instance supports retransformation.void addTransformer(Instrumentation instrumentation, ClassFileTransformer classFileTransformer, boolean canRetransform)
instrumentation - The instrumentation instance to invoke the method on.classFileTransformer - The class file transformer to register.canRetransform - true if the class file transformer should be invoked upon a retransformation.void retransformClasses(Instrumentation instrumentation, Class<?>[] type) throws UnmodifiableClassException
instrumentation - The instrumentation instance to invoke the method on.type - The types to retransform.UnmodifiableClassException - If any of the supplied types are unmodifiable.Copyright © 2014–2024. All rights reserved.