public class StaticWeaveClassTransformer
extends java.lang.Object
Description: This class provides the implementation of class transformer by leveraging on the following existing APIs,
Responsibilities:
Constructor and Description |
---|
StaticWeaveClassTransformer(java.net.URL inputArchiveURL,
java.lang.ClassLoader aclassloader)
Constructs an instance of StaticWeaveClassTransformer.
|
StaticWeaveClassTransformer(java.net.URL inputArchiveURL,
java.lang.String persistenceXMLLocation,
java.lang.ClassLoader aclassloader,
java.io.Writer logWriter,
int loglevel)
Constructs an instance of StaticWeaveClassTransformer.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
transform(java.lang.String originalClassName,
java.lang.Class originalClass,
byte[] originalClassBytes)
The method performs weaving function on the given class.
|
public StaticWeaveClassTransformer(java.net.URL inputArchiveURL, java.lang.ClassLoader aclassloader) throws java.lang.Exception
java.lang.Exception
public StaticWeaveClassTransformer(java.net.URL inputArchiveURL, java.lang.String persistenceXMLLocation, java.lang.ClassLoader aclassloader, java.io.Writer logWriter, int loglevel) throws java.net.URISyntaxException, java.io.IOException
java.net.URISyntaxException
java.io.IOException
public byte[] transform(java.lang.String originalClassName, java.lang.Class originalClass, byte[] originalClassBytes) throws java.lang.instrument.IllegalClassFormatException
java.lang.instrument.IllegalClassFormatException