public class org.springframework.instrument.classloading.InstrumentationLoadTimeWeaver 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.InstrumentationLoadTimeWeaver
super_class: java.lang.Object
{
private static final boolean AGENT_CLASS_PRESENT;
descriptor: Z
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final java.lang.ClassLoader classLoader;
descriptor: Ljava/lang/ClassLoader;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
private final java.lang.instrument.Instrumentation instrumentation;
descriptor: Ljava/lang/instrument/Instrumentation;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
private final java.util.List<java.lang.instrument.ClassFileTransformer> transformers;
descriptor: Ljava/util/List;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/List<Ljava/lang/instrument/ClassFileTransformer;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: ldc "org.springframework.instrument.InstrumentationSavingAgent"
1: ldc Lorg/springframework/instrument/classloading/InstrumentationLoadTimeWeaver;
invokevirtual java.lang.Class.getClassLoader:()Ljava/lang/ClassLoader;
2: invokestatic org.springframework.util.ClassUtils.isPresent:(Ljava/lang/String;Ljava/lang/ClassLoader;)Z
putstatic org.springframework.instrument.classloading.InstrumentationLoadTimeWeaver.AGENT_CLASS_PRESENT:Z
3: return
LocalVariableTable:
Start End Slot Name Signature
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.InstrumentationLoadTimeWeaver.<init>:(Ljava/lang/ClassLoader;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/instrument/classloading/InstrumentationLoadTimeWeaver;
public void <init>(java.lang.ClassLoader);
descriptor: (Ljava/lang/ClassLoader;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.ArrayList
dup
iconst_4
invokespecial java.util.ArrayList.<init>:(I)V
putfield org.springframework.instrument.classloading.InstrumentationLoadTimeWeaver.transformers:Ljava/util/List;
2: aload 0
aload 1
putfield org.springframework.instrument.classloading.InstrumentationLoadTimeWeaver.classLoader:Ljava/lang/ClassLoader;
3: aload 0
invokestatic org.springframework.instrument.classloading.InstrumentationLoadTimeWeaver.getInstrumentation:()Ljava/lang/instrument/Instrumentation;
putfield org.springframework.instrument.classloading.InstrumentationLoadTimeWeaver.instrumentation:Ljava/lang/instrument/Instrumentation;
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/springframework/instrument/classloading/InstrumentationLoadTimeWeaver;
0 5 1 classLoader Ljava/lang/ClassLoader;
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=4, locals=4, args_size=2
start local 0 start local 1 0: aload 1
ldc "Transformer must not be null"
invokestatic org.springframework.util.Assert.notNull:(Ljava/lang/Object;Ljava/lang/String;)V
1: new org.springframework.instrument.classloading.InstrumentationLoadTimeWeaver$FilteringClassFileTransformer
dup
aload 1
aload 0
getfield org.springframework.instrument.classloading.InstrumentationLoadTimeWeaver.classLoader:Ljava/lang/ClassLoader;
invokespecial org.springframework.instrument.classloading.InstrumentationLoadTimeWeaver$FilteringClassFileTransformer.<init>:(Ljava/lang/instrument/ClassFileTransformer;Ljava/lang/ClassLoader;)V
2: astore 2
start local 2 3: aload 0
getfield org.springframework.instrument.classloading.InstrumentationLoadTimeWeaver.transformers:Ljava/util/List;
dup
astore 3
monitorenter
4: aload 0
getfield org.springframework.instrument.classloading.InstrumentationLoadTimeWeaver.instrumentation:Ljava/lang/instrument/Instrumentation;
ifnull 5
iconst_1
goto 6
StackMap locals: org.springframework.instrument.classloading.InstrumentationLoadTimeWeaver$FilteringClassFileTransformer java.util.List
StackMap stack:
5: iconst_0
6: StackMap locals:
StackMap stack: int
ldc "Must start with Java agent to use InstrumentationLoadTimeWeaver. See Spring documentation."
7: invokestatic org.springframework.util.Assert.state:(ZLjava/lang/String;)V
8: aload 0
getfield org.springframework.instrument.classloading.InstrumentationLoadTimeWeaver.instrumentation:Ljava/lang/instrument/Instrumentation;
aload 2
invokeinterface java.lang.instrument.Instrumentation.addTransformer:(Ljava/lang/instrument/ClassFileTransformer;)V
9: aload 0
getfield org.springframework.instrument.classloading.InstrumentationLoadTimeWeaver.transformers:Ljava/util/List;
aload 2
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
10: aload 3
monitorexit
11: goto 14
StackMap locals:
StackMap stack: java.lang.Throwable
12: aload 3
monitorexit
13: athrow
14: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lorg/springframework/instrument/classloading/InstrumentationLoadTimeWeaver;
0 15 1 transformer Ljava/lang/instrument/ClassFileTransformer;
3 15 2 actualTransformer Lorg/springframework/instrument/classloading/InstrumentationLoadTimeWeaver$FilteringClassFileTransformer;
Exception table:
from to target type
4 11 12 any
12 13 12 any
MethodParameters:
Name Flags
transformer
public java.lang.ClassLoader getInstrumentableClassLoader();
descriptor: ()Ljava/lang/ClassLoader;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.instrument.classloading.InstrumentationLoadTimeWeaver.classLoader:Ljava/lang/ClassLoader;
ifnull 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: ldc "No ClassLoader available"
invokestatic org.springframework.util.Assert.state:(ZLjava/lang/String;)V
3: aload 0
getfield org.springframework.instrument.classloading.InstrumentationLoadTimeWeaver.classLoader:Ljava/lang/ClassLoader;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/springframework/instrument/classloading/InstrumentationLoadTimeWeaver;
public java.lang.ClassLoader getThrowawayClassLoader();
descriptor: ()Ljava/lang/ClassLoader;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new org.springframework.instrument.classloading.SimpleThrowawayClassLoader
dup
aload 0
invokevirtual org.springframework.instrument.classloading.InstrumentationLoadTimeWeaver.getInstrumentableClassLoader:()Ljava/lang/ClassLoader;
invokespecial org.springframework.instrument.classloading.SimpleThrowawayClassLoader.<init>:(Ljava/lang/ClassLoader;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/instrument/classloading/InstrumentationLoadTimeWeaver;
public void removeTransformers();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: aload 0
getfield org.springframework.instrument.classloading.InstrumentationLoadTimeWeaver.transformers:Ljava/util/List;
dup
astore 1
monitorenter
1: aload 0
getfield org.springframework.instrument.classloading.InstrumentationLoadTimeWeaver.instrumentation:Ljava/lang/instrument/Instrumentation;
ifnull 8
aload 0
getfield org.springframework.instrument.classloading.InstrumentationLoadTimeWeaver.transformers:Ljava/util/List;
invokeinterface java.util.List.isEmpty:()Z
ifne 8
2: aload 0
getfield org.springframework.instrument.classloading.InstrumentationLoadTimeWeaver.transformers:Ljava/util/List;
invokeinterface java.util.List.size:()I
iconst_1
isub
istore 2
start local 2 3: goto 6
4: StackMap locals: java.util.List int
StackMap stack:
aload 0
getfield org.springframework.instrument.classloading.InstrumentationLoadTimeWeaver.instrumentation:Ljava/lang/instrument/Instrumentation;
aload 0
getfield org.springframework.instrument.classloading.InstrumentationLoadTimeWeaver.transformers:Ljava/util/List;
iload 2
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast java.lang.instrument.ClassFileTransformer
invokeinterface java.lang.instrument.Instrumentation.removeTransformer:(Ljava/lang/instrument/ClassFileTransformer;)Z
pop
5: iinc 2 -1
StackMap locals:
StackMap stack:
6: iload 2
ifge 4
end local 2 7: aload 0
getfield org.springframework.instrument.classloading.InstrumentationLoadTimeWeaver.transformers:Ljava/util/List;
invokeinterface java.util.List.clear:()V
8: StackMap locals:
StackMap stack:
aload 1
monitorexit
9: goto 12
StackMap locals:
StackMap stack: java.lang.Throwable
10: aload 1
monitorexit
11: athrow
12: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lorg/springframework/instrument/classloading/InstrumentationLoadTimeWeaver;
3 7 2 i I
Exception table:
from to target type
1 9 10 any
10 11 10 any
public static boolean isInstrumentationAvailable();
descriptor: ()Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: invokestatic org.springframework.instrument.classloading.InstrumentationLoadTimeWeaver.getInstrumentation:()Ljava/lang/instrument/Instrumentation;
ifnull 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
LocalVariableTable:
Start End Slot Name Signature
private static java.lang.instrument.Instrumentation getInstrumentation();
descriptor: ()Ljava/lang/instrument/Instrumentation;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic org.springframework.instrument.classloading.InstrumentationLoadTimeWeaver.AGENT_CLASS_PRESENT:Z
ifeq 2
1: invokestatic org.springframework.instrument.classloading.InstrumentationLoadTimeWeaver$InstrumentationAccessor.getInstrumentation:()Ljava/lang/instrument/Instrumentation;
areturn
2: StackMap locals:
StackMap stack:
aconst_null
areturn
LocalVariableTable:
Start End Slot Name Signature
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
}
SourceFile: "InstrumentationLoadTimeWeaver.java"
NestMembers:
org.springframework.instrument.classloading.InstrumentationLoadTimeWeaver$FilteringClassFileTransformer org.springframework.instrument.classloading.InstrumentationLoadTimeWeaver$InstrumentationAccessor
InnerClasses:
private FilteringClassFileTransformer = org.springframework.instrument.classloading.InstrumentationLoadTimeWeaver$FilteringClassFileTransformer of org.springframework.instrument.classloading.InstrumentationLoadTimeWeaver
private InstrumentationAccessor = org.springframework.instrument.classloading.InstrumentationLoadTimeWeaver$InstrumentationAccessor of org.springframework.instrument.classloading.InstrumentationLoadTimeWeaver