public class org.springframework.instrument.classloading.glassfish.GlassFishLoadTimeWeaver 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.glassfish.GlassFishLoadTimeWeaver
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.glassfish.api.deployment.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.glassfish.GlassFishLoadTimeWeaver.<init>:(Ljava/lang/ClassLoader;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/instrument/classloading/glassfish/GlassFishLoadTimeWeaver;
public void <init>(java.lang.ClassLoader);
descriptor: (Ljava/lang/ClassLoader;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, 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 1
ldc "org.glassfish.api.deployment.InstrumentableClassLoader"
invokevirtual java.lang.ClassLoader.loadClass:(Ljava/lang/String;)Ljava/lang/Class;
astore 2
start local 2 3: 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.glassfish.GlassFishLoadTimeWeaver.addTransformerMethod:Ljava/lang/reflect/Method;
4: aload 0
aload 2
ldc "copy"
iconst_0
anewarray java.lang.Class
invokevirtual java.lang.Class.getMethod:(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
putfield org.springframework.instrument.classloading.glassfish.GlassFishLoadTimeWeaver.copyMethod:Ljava/lang/reflect/Method;
5: goto 10
end local 2 6: StackMap locals: org.springframework.instrument.classloading.glassfish.GlassFishLoadTimeWeaver java.lang.ClassLoader
StackMap stack: java.lang.Throwable
astore 3
start local 3 7: new java.lang.IllegalStateException
dup
8: ldc "Could not initialize GlassFishLoadTimeWeaver because GlassFish API classes are not available"
aload 3
9: invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 3 start local 2 10: StackMap locals: java.lang.Class
StackMap stack:
aconst_null
astore 3
start local 3 11: aload 1
astore 4
start local 4 12: goto 16
13: StackMap locals: java.lang.ClassLoader java.lang.ClassLoader
StackMap stack:
aload 2
aload 4
invokevirtual java.lang.Class.isInstance:(Ljava/lang/Object;)Z
ifeq 15
14: aload 4
astore 3
15: StackMap locals:
StackMap stack:
aload 4
invokevirtual java.lang.ClassLoader.getParent:()Ljava/lang/ClassLoader;
astore 4
StackMap locals:
StackMap stack:
16: aload 4
ifnull 17
aload 3
ifnull 13
end local 4 17: StackMap locals:
StackMap stack:
aload 3
ifnonnull 21
18: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " and its parents are not suitable ClassLoaders: A ["
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
19: aload 2
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "] implementation is required."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
20: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
21: StackMap locals:
StackMap stack:
aload 0
aload 3
putfield org.springframework.instrument.classloading.glassfish.GlassFishLoadTimeWeaver.classLoader:Ljava/lang/ClassLoader;
22: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 23 0 this Lorg/springframework/instrument/classloading/glassfish/GlassFishLoadTimeWeaver;
0 23 1 classLoader Ljava/lang/ClassLoader;
3 6 2 instrumentableLoaderClass Ljava/lang/Class<*>;
10 23 2 instrumentableLoaderClass Ljava/lang/Class<*>;
7 10 3 ex Ljava/lang/Throwable;
11 23 3 clazzLoader Ljava/lang/ClassLoader;
12 17 4 cl Ljava/lang/ClassLoader;
Exception table:
from to target type
2 5 6 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.glassfish.GlassFishLoadTimeWeaver.addTransformerMethod:Ljava/lang/reflect/Method;
aload 0
getfield org.springframework.instrument.classloading.glassfish.GlassFishLoadTimeWeaver.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 "GlassFish 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 GlassFish 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/glassfish/GlassFishLoadTimeWeaver;
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.glassfish.GlassFishLoadTimeWeaver.classLoader:Ljava/lang/ClassLoader;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/instrument/classloading/glassfish/GlassFishLoadTimeWeaver;
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.glassfish.GlassFishLoadTimeWeaver.classLoader:Ljava/lang/ClassLoader;
aload 0
getfield org.springframework.instrument.classloading.glassfish.GlassFishLoadTimeWeaver.copyMethod:Ljava/lang/reflect/Method;
aload 0
getfield org.springframework.instrument.classloading.glassfish.GlassFishLoadTimeWeaver.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 "GlassFish 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 GlassFish 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/glassfish/GlassFishLoadTimeWeaver;
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: "GlassFishLoadTimeWeaver.java"