Class Transformer
java.lang.Object
org.elasticsearch.entitlement.instrumentation.Transformer
- All Implemented Interfaces:
ClassFileTransformer
A
ClassFileTransformer that applies an Instrumenter to the appropriate classes.-
Constructor Summary
ConstructorsConstructorDescriptionTransformer(Instrumenter instrumenter, Set<String> classesToTransform, boolean verifyClasses) -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanbyte[]transform(ClassLoader loader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.instrument.ClassFileTransformer
transform
-
Constructor Details
-
Transformer
public Transformer(Instrumenter instrumenter, Set<String> classesToTransform, boolean verifyClasses)
-
-
Method Details
-
enableClassVerification
public void enableClassVerification() -
hadErrors
public boolean hadErrors() -
transform
public byte[] transform(ClassLoader loader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) - Specified by:
transformin interfaceClassFileTransformer
-