class org.springframework.instrument.classloading.websphere.WebSphereClassLoaderAdapter
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.springframework.instrument.classloading.websphere.WebSphereClassLoaderAdapter
super_class: java.lang.Object
{
private static final java.lang.String COMPOUND_CLASS_LOADER_NAME;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "com.ibm.ws.classloader.CompoundClassLoader"
private static final java.lang.String CLASS_PRE_PROCESSOR_NAME;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "com.ibm.websphere.classloader.ClassLoaderInstancePreDefinePlugin"
private static final java.lang.String PLUGINS_FIELD;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "preDefinePlugins"
private java.lang.ClassLoader classLoader;
descriptor: Ljava/lang/ClassLoader;
flags: (0x0002) ACC_PRIVATE
private java.lang.Class<?> wsPreProcessorClass;
descriptor: Ljava/lang/Class;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/lang/Class<*>;
private java.lang.reflect.Method addPreDefinePlugin;
descriptor: Ljava/lang/reflect/Method;
flags: (0x0002) ACC_PRIVATE
private java.lang.reflect.Constructor<? extends java.lang.ClassLoader> cloneConstructor;
descriptor: Ljava/lang/reflect/Constructor;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/lang/reflect/Constructor<+Ljava/lang/ClassLoader;>;
private java.lang.reflect.Field transformerList;
descriptor: Ljava/lang/reflect/Field;
flags: (0x0002) ACC_PRIVATE
public void <init>(java.lang.ClassLoader);
descriptor: (Ljava/lang/ClassLoader;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=4, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 1
ldc "com.ibm.ws.classloader.CompoundClassLoader"
invokevirtual java.lang.ClassLoader.loadClass:(Ljava/lang/String;)Ljava/lang/Class;
astore 2
start local 2 2: aload 0
aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
iconst_1
anewarray java.lang.Class
dup
iconst_0
aload 2
aastore
invokevirtual java.lang.Class.getDeclaredConstructor:([Ljava/lang/Class;)Ljava/lang/reflect/Constructor;
putfield org.springframework.instrument.classloading.websphere.WebSphereClassLoaderAdapter.cloneConstructor:Ljava/lang/reflect/Constructor;
3: aload 0
getfield org.springframework.instrument.classloading.websphere.WebSphereClassLoaderAdapter.cloneConstructor:Ljava/lang/reflect/Constructor;
iconst_1
invokevirtual java.lang.reflect.Constructor.setAccessible:(Z)V
4: aload 0
aload 1
ldc "com.ibm.websphere.classloader.ClassLoaderInstancePreDefinePlugin"
invokevirtual java.lang.ClassLoader.loadClass:(Ljava/lang/String;)Ljava/lang/Class;
putfield org.springframework.instrument.classloading.websphere.WebSphereClassLoaderAdapter.wsPreProcessorClass:Ljava/lang/Class;
5: aload 0
aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
ldc "addPreDefinePlugin"
iconst_1
anewarray java.lang.Class
dup
iconst_0
aload 0
getfield org.springframework.instrument.classloading.websphere.WebSphereClassLoaderAdapter.wsPreProcessorClass:Ljava/lang/Class;
aastore
invokevirtual java.lang.Class.getMethod:(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
putfield org.springframework.instrument.classloading.websphere.WebSphereClassLoaderAdapter.addPreDefinePlugin:Ljava/lang/reflect/Method;
6: aload 0
aload 2
ldc "preDefinePlugins"
invokevirtual java.lang.Class.getDeclaredField:(Ljava/lang/String;)Ljava/lang/reflect/Field;
putfield org.springframework.instrument.classloading.websphere.WebSphereClassLoaderAdapter.transformerList:Ljava/lang/reflect/Field;
7: aload 0
getfield org.springframework.instrument.classloading.websphere.WebSphereClassLoaderAdapter.transformerList:Ljava/lang/reflect/Field;
iconst_1
invokevirtual java.lang.reflect.Field.setAccessible:(Z)V
8: goto 13
end local 2 9: StackMap locals: org.springframework.instrument.classloading.websphere.WebSphereClassLoaderAdapter java.lang.ClassLoader
StackMap stack: java.lang.Throwable
astore 3
start local 3 10: new java.lang.IllegalStateException
dup
11: ldc "Could not initialize WebSphere LoadTimeWeaver because WebSphere API classes are not available"
aload 3
12: invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 3 start local 2 13: StackMap locals: java.lang.Class
StackMap stack:
aload 2
aload 1
invokevirtual java.lang.Class.isInstance:(Ljava/lang/Object;)Z
ifne 17
14: new java.lang.IllegalArgumentException
dup
15: new java.lang.StringBuilder
dup
ldc "ClassLoader must be an instance of [com.ibm.ws.classloader.CompoundClassLoader]: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
16: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
17: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield org.springframework.instrument.classloading.websphere.WebSphereClassLoaderAdapter.classLoader:Ljava/lang/ClassLoader;
18: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Lorg/springframework/instrument/classloading/websphere/WebSphereClassLoaderAdapter;
0 19 1 classLoader Ljava/lang/ClassLoader;
2 9 2 wsCompoundClassLoaderClass Ljava/lang/Class<*>;
13 19 2 wsCompoundClassLoaderClass Ljava/lang/Class<*>;
10 13 3 ex Ljava/lang/Throwable;
Exception table:
from to target type
1 8 9 Class java.lang.Throwable
MethodParameters:
Name Flags
classLoader
public java.lang.ClassLoader getClassLoader();
descriptor: ()Ljava/lang/ClassLoader;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.instrument.classloading.websphere.WebSphereClassLoaderAdapter.classLoader:Ljava/lang/ClassLoader;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/instrument/classloading/websphere/WebSphereClassLoaderAdapter;
public void addTransformer(java.lang.instrument.ClassFileTransformer);
descriptor: (Ljava/lang/instrument/ClassFileTransformer;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=4, args_size=2
start local 0 start local 1 0: aload 1
ldc "ClassFileTransformer must not be null"
invokestatic org.springframework.util.Assert.notNull:(Ljava/lang/Object;Ljava/lang/String;)V
1: new org.springframework.instrument.classloading.websphere.WebSphereClassPreDefinePlugin
dup
aload 1
invokespecial org.springframework.instrument.classloading.websphere.WebSphereClassPreDefinePlugin.<init>:(Ljava/lang/instrument/ClassFileTransformer;)V
astore 2
start local 2 2: aload 0
getfield org.springframework.instrument.classloading.websphere.WebSphereClassLoaderAdapter.wsPreProcessorClass:Ljava/lang/Class;
invokevirtual java.lang.Class.getClassLoader:()Ljava/lang/ClassLoader;
3: iconst_1
anewarray java.lang.Class
dup
iconst_0
aload 0
getfield org.springframework.instrument.classloading.websphere.WebSphereClassLoaderAdapter.wsPreProcessorClass:Ljava/lang/Class;
aastore
aload 2
4: invokestatic java.lang.reflect.Proxy.newProxyInstance:(Ljava/lang/ClassLoader;[Ljava/lang/Class;Ljava/lang/reflect/InvocationHandler;)Ljava/lang/Object;
astore 3
start local 3 5: aload 0
getfield org.springframework.instrument.classloading.websphere.WebSphereClassLoaderAdapter.addPreDefinePlugin:Ljava/lang/reflect/Method;
aload 0
getfield org.springframework.instrument.classloading.websphere.WebSphereClassLoaderAdapter.classLoader:Ljava/lang/ClassLoader;
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 3
aastore
invokevirtual java.lang.reflect.Method.invoke:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 3 end local 2 6: goto 11
7: StackMap locals:
StackMap stack: java.lang.reflect.InvocationTargetException
astore 2
start local 2 8: new java.lang.IllegalStateException
dup
ldc "WebSphere addPreDefinePlugin method threw exception"
aload 2
invokevirtual java.lang.reflect.InvocationTargetException.getCause:()Ljava/lang/Throwable;
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 2 9: StackMap locals:
StackMap stack: java.lang.Throwable
astore 2
start local 2 10: new java.lang.IllegalStateException
dup
ldc "Could not invoke WebSphere addPreDefinePlugin method"
aload 2
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 2 11: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/springframework/instrument/classloading/websphere/WebSphereClassLoaderAdapter;
0 12 1 transformer Ljava/lang/instrument/ClassFileTransformer;
2 6 2 adapter Ljava/lang/reflect/InvocationHandler;
5 6 3 adapterInstance Ljava/lang/Object;
8 9 2 ex Ljava/lang/reflect/InvocationTargetException;
10 11 2 ex Ljava/lang/Throwable;
Exception table:
from to target type
1 6 7 Class java.lang.reflect.InvocationTargetException
1 6 9 Class java.lang.Throwable
MethodParameters:
Name Flags
transformer
public java.lang.ClassLoader getThrowawayClassLoader();
descriptor: ()Ljava/lang/ClassLoader;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=1
start local 0 0: aload 0
getfield org.springframework.instrument.classloading.websphere.WebSphereClassLoaderAdapter.cloneConstructor:Ljava/lang/reflect/Constructor;
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
invokevirtual org.springframework.instrument.classloading.websphere.WebSphereClassLoaderAdapter.getClassLoader:()Ljava/lang/ClassLoader;
aastore
invokevirtual java.lang.reflect.Constructor.newInstance:([Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.ClassLoader
astore 1
start local 1 1: aload 0
getfield org.springframework.instrument.classloading.websphere.WebSphereClassLoaderAdapter.transformerList:Ljava/lang/reflect/Field;
aload 1
invokevirtual java.lang.reflect.Field.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.List
astore 2
start local 2 2: aload 2
invokeinterface java.util.List.clear:()V
3: aload 1
4: areturn
end local 2 end local 1 5: StackMap locals:
StackMap stack: java.lang.reflect.InvocationTargetException
astore 1
start local 1 6: new java.lang.IllegalStateException
dup
ldc "WebSphere CompoundClassLoader constructor failed"
aload 1
invokevirtual java.lang.reflect.InvocationTargetException.getCause:()Ljava/lang/Throwable;
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 1 7: StackMap locals:
StackMap stack: java.lang.Throwable
astore 1
start local 1 8: new java.lang.IllegalStateException
dup
ldc "Could not construct WebSphere CompoundClassLoader"
aload 1
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/springframework/instrument/classloading/websphere/WebSphereClassLoaderAdapter;
1 5 1 loader Ljava/lang/ClassLoader;
2 5 2 list Ljava/util/List<*>;
6 7 1 ex Ljava/lang/reflect/InvocationTargetException;
8 9 1 ex Ljava/lang/Throwable;
Exception table:
from to target type
0 4 5 Class java.lang.reflect.InvocationTargetException
0 4 7 Class java.lang.Throwable
}
SourceFile: "WebSphereClassLoaderAdapter.java"