public class org.springframework.instrument.classloading.jboss.JBossLoadTimeWeaver 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.jboss.JBossLoadTimeWeaver
super_class: java.lang.Object
{
private static final java.lang.String DELEGATING_TRANSFORMER_CLASS_NAME;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "org.jboss.as.server.deployment.module.DelegatingClassFileTransformer"
private static final java.lang.String WRAPPER_TRANSFORMER_CLASS_NAME;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "org.jboss.modules.JLIClassTransformer"
private final java.lang.ClassLoader classLoader;
descriptor: Ljava/lang/ClassLoader;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.Object delegatingTransformer;
descriptor: Ljava/lang/Object;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.reflect.Method addTransformer;
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.jboss.JBossLoadTimeWeaver.<init>:(Ljava/lang/ClassLoader;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/instrument/classloading/jboss/JBossLoadTimeWeaver;
public void <init>(java.lang.ClassLoader);
descriptor: (Ljava/lang/ClassLoader;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=5, 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.jboss.JBossLoadTimeWeaver.classLoader:Ljava/lang/ClassLoader;
3: aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
ldc "transformer"
invokestatic org.springframework.util.ReflectionUtils.findField:(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/reflect/Field;
astore 2
start local 2 4: aload 2
ifnonnull 8
5: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Could not find 'transformer' field on JBoss ClassLoader: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
6: aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
7: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals: org.springframework.instrument.classloading.jboss.JBossLoadTimeWeaver java.lang.ClassLoader java.lang.reflect.Field
StackMap stack:
aload 2
iconst_1
invokevirtual java.lang.reflect.Field.setAccessible:(Z)V
9: aload 2
aload 1
invokevirtual java.lang.reflect.Field.get:(Ljava/lang/Object;)Ljava/lang/Object;
astore 3
start local 3 10: aload 3
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
ldc "org.jboss.modules.JLIClassTransformer"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 20
11: aload 3
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
ldc "transformer"
invokestatic org.springframework.util.ReflectionUtils.findField:(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/reflect/Field;
astore 4
start local 4 12: aload 4
ifnonnull 18
13: new java.lang.IllegalArgumentException
dup
14: new java.lang.StringBuilder
dup
ldc "Could not find 'transformer' field on JBoss JLIClassTransformer: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
15: aload 3
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
16: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
17: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
18: StackMap locals: java.lang.Object java.lang.reflect.Field
StackMap stack:
aload 4
iconst_1
invokevirtual java.lang.reflect.Field.setAccessible:(Z)V
19: aload 4
aload 3
invokevirtual java.lang.reflect.Field.get:(Ljava/lang/Object;)Ljava/lang/Object;
astore 3
end local 4 20: StackMap locals:
StackMap stack:
aload 3
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
ldc "org.jboss.as.server.deployment.module.DelegatingClassFileTransformer"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 26
21: new java.lang.IllegalStateException
dup
22: new java.lang.StringBuilder
dup
ldc "Transformer not of the expected type DelegatingClassFileTransformer: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
23: aload 3
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
24: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
25: invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
26: StackMap locals:
StackMap stack:
aload 0
aload 3
putfield org.springframework.instrument.classloading.jboss.JBossLoadTimeWeaver.delegatingTransformer:Ljava/lang/Object;
27: aload 0
getfield org.springframework.instrument.classloading.jboss.JBossLoadTimeWeaver.delegatingTransformer:Ljava/lang/Object;
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
28: ldc "addTransformer"
iconst_1
anewarray java.lang.Class
dup
iconst_0
ldc Ljava/lang/instrument/ClassFileTransformer;
aastore
29: invokestatic org.springframework.util.ReflectionUtils.findMethod:(Ljava/lang/Class;Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
astore 4
start local 4 30: aload 4
ifnonnull 36
31: new java.lang.IllegalArgumentException
dup
32: new java.lang.StringBuilder
dup
ldc "Could not find 'addTransformer' method on JBoss DelegatingClassFileTransformer: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
33: aload 0
getfield org.springframework.instrument.classloading.jboss.JBossLoadTimeWeaver.delegatingTransformer:Ljava/lang/Object;
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
34: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
35: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
36: StackMap locals: java.lang.reflect.Method
StackMap stack:
aload 4
iconst_1
invokevirtual java.lang.reflect.Method.setAccessible:(Z)V
37: aload 0
aload 4
putfield org.springframework.instrument.classloading.jboss.JBossLoadTimeWeaver.addTransformer:Ljava/lang/reflect/Method;
end local 4 end local 3 end local 2 38: goto 41
39: StackMap locals: org.springframework.instrument.classloading.jboss.JBossLoadTimeWeaver java.lang.ClassLoader
StackMap stack: java.lang.Throwable
astore 2
start local 2 40: new java.lang.IllegalStateException
dup
ldc "Could not initialize JBoss LoadTimeWeaver"
aload 2
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 2 41: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 42 0 this Lorg/springframework/instrument/classloading/jboss/JBossLoadTimeWeaver;
0 42 1 classLoader Ljava/lang/ClassLoader;
4 38 2 transformer Ljava/lang/reflect/Field;
10 38 3 suggestedTransformer Ljava/lang/Object;
12 20 4 wrappedTransformer Ljava/lang/reflect/Field;
30 38 4 addTransformer Ljava/lang/reflect/Method;
40 41 2 ex Ljava/lang/Throwable;
Exception table:
from to target type
3 38 39 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.jboss.JBossLoadTimeWeaver.addTransformer:Ljava/lang/reflect/Method;
aload 0
getfield org.springframework.instrument.classloading.jboss.JBossLoadTimeWeaver.delegatingTransformer:Ljava/lang/Object;
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 4
2: StackMap locals:
StackMap stack: java.lang.Throwable
astore 2
start local 2 3: new java.lang.IllegalStateException
dup
new java.lang.StringBuilder
dup
ldc "Could not add transformer on JBoss ClassLoader: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.springframework.instrument.classloading.jboss.JBossLoadTimeWeaver.classLoader:Ljava/lang/ClassLoader;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 2
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 2 4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/springframework/instrument/classloading/jboss/JBossLoadTimeWeaver;
0 5 1 transformer Ljava/lang/instrument/ClassFileTransformer;
3 4 2 ex Ljava/lang/Throwable;
Exception table:
from to target type
0 1 2 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.jboss.JBossLoadTimeWeaver.classLoader:Ljava/lang/ClassLoader;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/instrument/classloading/jboss/JBossLoadTimeWeaver;
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.jboss.JBossLoadTimeWeaver.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/jboss/JBossLoadTimeWeaver;
}
SourceFile: "JBossLoadTimeWeaver.java"