@HashCodeAndEqualsPlugin.Enhance public static class ClassFileLocator.AgentBased.Dispatcher.ForJava6CapableVm extends Object implements ClassFileLocator.AgentBased.Dispatcher
ClassFileLocator.AgentBased.Dispatcher.CreationAction, ClassFileLocator.AgentBased.Dispatcher.ForJava6CapableVm, ClassFileLocator.AgentBased.Dispatcher.ForLegacyVm| Modifier | Constructor and Description |
|---|---|
protected |
ForJava6CapableVm(Method isRetransformClassesSupported,
Method addTransformer,
Method retransformClasses)
Creates a dispatcher for a Java 6 capable VM.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addTransformer(Instrumentation instrumentation,
ClassFileTransformer classFileTransformer,
boolean canRetransform)
Registers a transformer.
|
boolean |
isRetransformClassesSupported(Instrumentation instrumentation)
Invokes the
Instrumentation#isRetransformClassesSupported method. |
void |
retransformClasses(Instrumentation instrumentation,
Class<?>[] type)
Retransforms the supplied classes.
|
protected ForJava6CapableVm(Method isRetransformClassesSupported, Method addTransformer, Method retransformClasses)
isRetransformClassesSupported - The Instrumentation#isRetransformClassesSupported method.addTransformer - The Instrumentation#addTransformer method.retransformClasses - The Instrumentation#retransformClasses method.public boolean isRetransformClassesSupported(Instrumentation instrumentation)
Instrumentation#isRetransformClassesSupported method.isRetransformClassesSupported in interface ClassFileLocator.AgentBased.Dispatcherinstrumentation - The instrumentation instance to invoke the method on.true if the supplied instrumentation instance supports retransformation.public void addTransformer(Instrumentation instrumentation, ClassFileTransformer classFileTransformer, boolean canRetransform)
addTransformer in interface ClassFileLocator.AgentBased.Dispatcherinstrumentation - 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.public void retransformClasses(Instrumentation instrumentation, Class<?>[] type) throws UnmodifiableClassException
retransformClasses in interface ClassFileLocator.AgentBased.Dispatcherinstrumentation - The instrumentation instance to invoke the method on.type - The types to retransform.UnmodifiableClassException - If any of the supplied types are unmodifiable.Copyright © 2014–2018. All rights reserved.