public class Instrumentator
extends java.lang.Object
Constructor and Description |
---|
Instrumentator(java.lang.String attachLibFolder)
Constructor, stores library folder to which to save
and from which to load all the static libraries
required for the various class transformations.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getJavassistLibPath()
Getter method for Javassist library path.
|
void |
instrumentate()
Starts the complicated instrumentation process.
|
public Instrumentator(java.lang.String attachLibFolder)
attachLibFolder
- Library folder to which to save and from which
to load all the static libraries required for
the various class transformations.public static java.lang.String getJavassistLibPath()
public void instrumentate() throws java.lang.NoSuchFieldException, java.lang.SecurityException, java.lang.IllegalArgumentException, java.lang.IllegalAccessException, java.io.IOException, com.sun.tools.attach.AttachNotSupportedException
java.lang.NoSuchFieldException
- If we could not transform a class because of a missing defined field.java.lang.SecurityException
- If we could not transform a class because JVM security did not allow us to.java.lang.IllegalArgumentException
- If we could not transform a class because of our stupidity.java.lang.IllegalAccessException
- If we could not transform a class because we were prohibited from accessing a class.java.io.IOException
- If we could not transform a class because there was a input / output error trying to read/write something.com.sun.tools.attach.AttachNotSupportedException
- If we could not transform a class because attaching an agent to the JVM is not supported.