public class org.springframework.instrument.classloading.tomcat.TomcatLoadTimeWeaver implements org.springframework.instrument.classloading.LoadTimeWeaver
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.springframework.instrument.classloading.tomcat.TomcatLoadTimeWeaver
super_class: java.lang.Object
{
private static final java.lang.String INSTRUMENTABLE_LOADER_CLASS_NAME;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "org.apache.tomcat.InstrumentableClassLoader"
private final java.lang.ClassLoader classLoader;
descriptor: Ljava/lang/ClassLoader;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.reflect.Method addTransformerMethod;
descriptor: Ljava/lang/reflect/Method;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.reflect.Method copyMethod;
descriptor: Ljava/lang/reflect/Method;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokestatic org.springframework.util.ClassUtils.getDefaultClassLoader:()Ljava/lang/ClassLoader;
invokespecial org.springframework.instrument.classloading.tomcat.TomcatLoadTimeWeaver.<init>:(Ljava/lang/ClassLoader;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/instrument/classloading/tomcat/TomcatLoadTimeWeaver;
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 "ClassLoader must not be null"
invokestatic org.springframework.util.Assert.notNull:(Ljava/lang/Object;Ljava/lang/String;)V
2: aload 0
aload 1
putfield org.springframework.instrument.classloading.tomcat.TomcatLoadTimeWeaver.classLoader:Ljava/lang/ClassLoader;
3: aload 1
ldc "org.apache.tomcat.InstrumentableClassLoader"
invokevirtual java.lang.ClassLoader.loadClass:(Ljava/lang/String;)Ljava/lang/Class;
astore 2
start local 2 4: aload 2
aload 1
invokevirtual java.lang.Class.isInstance:(Ljava/lang/Object;)Z
ifne 9
5: aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
astore 2
6: goto 9
end local 2 7: StackMap locals: org.springframework.instrument.classloading.tomcat.TomcatLoadTimeWeaver java.lang.ClassLoader
StackMap stack: java.lang.ClassNotFoundException
pop
8: aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
astore 2
start local 2 9: StackMap locals: java.lang.Class
StackMap stack:
aload 0
aload 2
ldc "addTransformer"
iconst_1
anewarray java.lang.Class
dup
iconst_0
ldc Ljava/lang/instrument/ClassFileTransformer;
aastore
invokevirtual java.lang.Class.getMethod:(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
putfield org.springframework.instrument.classloading.tomcat.TomcatLoadTimeWeaver.addTransformerMethod:Ljava/lang/reflect/Method;
10: aload 2
ldc "copyWithoutTransformers"
iconst_0
anewarray java.lang.Class
invokestatic org.springframework.util.ClassUtils.getMethodIfAvailable:(Ljava/lang/Class;Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
astore 3
start local 3 11: aload 3
ifnonnull 13
12: aload 2
ldc "getThrowawayClassLoader"
iconst_0
anewarray java.lang.Class
invokevirtual java.lang.Class.getMethod:(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
astore 3
13: StackMap locals: java.lang.reflect.Method
StackMap stack:
aload 0
aload 3
putfield org.springframework.instrument.classloading.tomcat.TomcatLoadTimeWeaver.copyMethod:Ljava/lang/reflect/Method;
end local 3 14: goto 19
15: StackMap locals: org.springframework.instrument.classloading.tomcat.TomcatLoadTimeWeaver java.lang.ClassLoader java.lang.Class
StackMap stack: java.lang.Throwable
astore 3
start local 3 16: new java.lang.IllegalStateException
dup
17: ldc "Could not initialize TomcatLoadTimeWeaver because Tomcat API classes are not available"
aload 3
18: invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 3 19: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Lorg/springframework/instrument/classloading/tomcat/TomcatLoadTimeWeaver;
0 20 1 classLoader Ljava/lang/ClassLoader;
4 7 2 instrumentableLoaderClass Ljava/lang/Class<*>;
9 20 2 instrumentableLoaderClass Ljava/lang/Class<*>;
11 14 3 copyMethod Ljava/lang/reflect/Method;
16 19 3 ex Ljava/lang/Throwable;
Exception table:
from to target type
3 6 7 Class java.lang.ClassNotFoundException
9 14 15 Class java.lang.Throwable
RuntimeVisibleParameterAnnotations:
0:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
classLoader
public void addTransformer(java.lang.instrument.ClassFileTransformer);
descriptor: (Ljava/lang/instrument/ClassFileTransformer;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.springframework.instrument.classloading.tomcat.TomcatLoadTimeWeaver.addTransformerMethod:Ljava/lang/reflect/Method;
aload 0
getfield org.springframework.instrument.classloading.tomcat.TomcatLoadTimeWeaver.classLoader:Ljava/lang/ClassLoader;
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
invokevirtual java.lang.reflect.Method.invoke:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
pop
1: goto 6
2: StackMap locals:
StackMap stack: java.lang.reflect.InvocationTargetException
astore 2
start local 2 3: new java.lang.IllegalStateException
dup
ldc "Tomcat addTransformer 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 4: StackMap locals:
StackMap stack: java.lang.Throwable
astore 2
start local 2 5: new java.lang.IllegalStateException
dup
ldc "Could not invoke Tomcat addTransformer method"
aload 2
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 2 6: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/springframework/instrument/classloading/tomcat/TomcatLoadTimeWeaver;
0 7 1 transformer Ljava/lang/instrument/ClassFileTransformer;
3 4 2 ex Ljava/lang/reflect/InvocationTargetException;
5 6 2 ex Ljava/lang/Throwable;
Exception table:
from to target type
0 1 2 Class java.lang.reflect.InvocationTargetException
0 1 4 Class java.lang.Throwable
MethodParameters:
Name Flags
transformer
public java.lang.ClassLoader getInstrumentableClassLoader();
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.tomcat.TomcatLoadTimeWeaver.classLoader:Ljava/lang/ClassLoader;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/instrument/classloading/tomcat/TomcatLoadTimeWeaver;
public java.lang.ClassLoader getThrowawayClassLoader();
descriptor: ()Ljava/lang/ClassLoader;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=2, args_size=1
start local 0 0: new org.springframework.core.OverridingClassLoader
dup
aload 0
getfield org.springframework.instrument.classloading.tomcat.TomcatLoadTimeWeaver.classLoader:Ljava/lang/ClassLoader;
aload 0
getfield org.springframework.instrument.classloading.tomcat.TomcatLoadTimeWeaver.copyMethod:Ljava/lang/reflect/Method;
aload 0
getfield org.springframework.instrument.classloading.tomcat.TomcatLoadTimeWeaver.classLoader:Ljava/lang/ClassLoader;
iconst_0
anewarray java.lang.Object
invokevirtual java.lang.reflect.Method.invoke:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.ClassLoader
invokespecial org.springframework.core.OverridingClassLoader.<init>:(Ljava/lang/ClassLoader;Ljava/lang/ClassLoader;)V
1: areturn
2: StackMap locals:
StackMap stack: java.lang.reflect.InvocationTargetException
astore 1
start local 1 3: new java.lang.IllegalStateException
dup
ldc "Tomcat copy method threw exception"
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 4: StackMap locals:
StackMap stack: java.lang.Throwable
astore 1
start local 1 5: new java.lang.IllegalStateException
dup
ldc "Could not invoke Tomcat copy method"
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 6 0 this Lorg/springframework/instrument/classloading/tomcat/TomcatLoadTimeWeaver;
3 4 1 ex Ljava/lang/reflect/InvocationTargetException;
5 6 1 ex Ljava/lang/Throwable;
Exception table:
from to target type
0 1 2 Class java.lang.reflect.InvocationTargetException
0 1 4 Class java.lang.Throwable
}
SourceFile: "TomcatLoadTimeWeaver.java"