class WebSphereClassPreDefinePlugin
extends java.lang.Object
implements java.lang.reflect.InvocationHandler
ClassFileTransformer
underneath.
To avoid compile time checks again the vendor API, a dynamic proxy is being used.
Modifier and Type | Class and Description |
---|---|
private static class |
WebSphereClassPreDefinePlugin.Dummy |
Modifier and Type | Field and Description |
---|---|
private java.lang.instrument.ClassFileTransformer |
transformer |
Constructor and Description |
---|
WebSphereClassPreDefinePlugin(java.lang.instrument.ClassFileTransformer transformer)
Create a new
WebSphereClassPreDefinePlugin . |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args) |
java.lang.String |
toString() |
protected byte[] |
transform(java.lang.String className,
byte[] classfileBuffer,
java.security.CodeSource codeSource,
java.lang.ClassLoader classLoader) |
public WebSphereClassPreDefinePlugin(java.lang.instrument.ClassFileTransformer transformer)
WebSphereClassPreDefinePlugin
.transformer
- the ClassFileTransformer
to be adapted
(must not be null
)public java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args) throws java.lang.Throwable
invoke
in interface java.lang.reflect.InvocationHandler
java.lang.Throwable
protected byte[] transform(java.lang.String className, byte[] classfileBuffer, java.security.CodeSource codeSource, java.lang.ClassLoader classLoader) throws java.lang.Exception
java.lang.Exception
public java.lang.String toString()
toString
in class java.lang.Object