public class org.apache.cassandra.triggers.CustomClassLoader extends java.net.URLClassLoader
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.cassandra.triggers.CustomClassLoader
super_class: java.net.URLClassLoader
{
private static final org.slf4j.Logger logger;
descriptor: Lorg/slf4j/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final java.util.Map<java.lang.String, java.lang.Class<?>> cache;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/String;Ljava/lang/Class<*>;>;
private final java.lang.ClassLoader parent;
descriptor: Ljava/lang/ClassLoader;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/apache/cassandra/triggers/CustomClassLoader;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic org.apache.cassandra.triggers.CustomClassLoader.$assertionsDisabled:Z
3: ldc Lorg/apache/cassandra/triggers/CustomClassLoader;
invokestatic org.slf4j.LoggerFactory.getLogger:(Ljava/lang/Class;)Lorg/slf4j/Logger;
putstatic org.apache.cassandra.triggers.CustomClassLoader.logger:Lorg/slf4j/Logger;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(java.lang.ClassLoader);
descriptor: (Ljava/lang/ClassLoader;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iconst_0
anewarray java.net.URL
aload 1
invokespecial java.net.URLClassLoader.<init>:([Ljava/net/URL;Ljava/lang/ClassLoader;)V
1: aload 0
new java.util.concurrent.ConcurrentHashMap
dup
invokespecial java.util.concurrent.ConcurrentHashMap.<init>:()V
putfield org.apache.cassandra.triggers.CustomClassLoader.cache:Ljava/util/Map;
2: getstatic org.apache.cassandra.triggers.CustomClassLoader.$assertionsDisabled:Z
ifne 3
aload 1
ifnonnull 3
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
3: StackMap locals: org.apache.cassandra.triggers.CustomClassLoader java.lang.ClassLoader
StackMap stack:
aload 0
aload 0
invokevirtual org.apache.cassandra.triggers.CustomClassLoader.getParent:()Ljava/lang/ClassLoader;
putfield org.apache.cassandra.triggers.CustomClassLoader.parent:Ljava/lang/ClassLoader;
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/cassandra/triggers/CustomClassLoader;
0 5 1 parent Ljava/lang/ClassLoader;
MethodParameters:
Name Flags
parent
public void <init>(java.lang.ClassLoader, java.io.File);
descriptor: (Ljava/lang/ClassLoader;Ljava/io/File;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
iconst_0
anewarray java.net.URL
aload 1
invokespecial java.net.URLClassLoader.<init>:([Ljava/net/URL;Ljava/lang/ClassLoader;)V
1: aload 0
new java.util.concurrent.ConcurrentHashMap
dup
invokespecial java.util.concurrent.ConcurrentHashMap.<init>:()V
putfield org.apache.cassandra.triggers.CustomClassLoader.cache:Ljava/util/Map;
2: getstatic org.apache.cassandra.triggers.CustomClassLoader.$assertionsDisabled:Z
ifne 3
aload 1
ifnonnull 3
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
3: StackMap locals: org.apache.cassandra.triggers.CustomClassLoader java.lang.ClassLoader java.io.File
StackMap stack:
aload 0
aload 0
invokevirtual org.apache.cassandra.triggers.CustomClassLoader.getParent:()Ljava/lang/ClassLoader;
putfield org.apache.cassandra.triggers.CustomClassLoader.parent:Ljava/lang/ClassLoader;
4: aload 0
aload 2
invokevirtual org.apache.cassandra.triggers.CustomClassLoader.addClassPath:(Ljava/io/File;)V
5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/cassandra/triggers/CustomClassLoader;
0 6 1 parent Ljava/lang/ClassLoader;
0 6 2 classPathDir Ljava/io/File;
MethodParameters:
Name Flags
parent
classPathDir
public void addClassPath(java.io.File);
descriptor: (Ljava/io/File;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=9, args_size=2
start local 0 start local 1 0: aload 1
ifnull 1
aload 1
invokevirtual java.io.File.exists:()Z
ifne 2
1: StackMap locals:
StackMap stack:
return
2: StackMap locals:
StackMap stack:
new org.apache.cassandra.triggers.CustomClassLoader$1
dup
aload 0
invokespecial org.apache.cassandra.triggers.CustomClassLoader$1.<init>:(Lorg/apache/cassandra/triggers/CustomClassLoader;)V
astore 2
start local 2 3: aload 1
aload 2
invokevirtual java.io.File.listFiles:(Ljava/io/FilenameFilter;)[Ljava/io/File;
dup
astore 6
arraylength
istore 5
iconst_0
istore 4
goto 18
StackMap locals: org.apache.cassandra.triggers.CustomClassLoader java.io.File java.io.FilenameFilter top int int java.io.File[]
StackMap stack:
4: aload 6
iload 4
aaload
astore 3
start local 3 5: new java.io.File
dup
ldc "java.io.tmpdir"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
ldc "lib"
invokespecial java.io.File.<init>:(Ljava/lang/String;Ljava/lang/String;)V
astore 7
start local 7 6: aload 7
invokevirtual java.io.File.exists:()Z
ifne 9
7: aload 7
invokevirtual java.io.File.mkdir:()Z
pop
8: aload 7
invokevirtual java.io.File.deleteOnExit:()V
9: StackMap locals: org.apache.cassandra.triggers.CustomClassLoader java.io.File java.io.FilenameFilter java.io.File int int java.io.File[] java.io.File
StackMap stack:
ldc "cassandra-"
ldc ".jar"
aload 7
invokestatic java.io.File.createTempFile:(Ljava/lang/String;Ljava/lang/String;Ljava/io/File;)Ljava/io/File;
astore 8
start local 8 10: aload 8
invokevirtual java.io.File.deleteOnExit:()V
11: getstatic org.apache.cassandra.triggers.CustomClassLoader.logger:Lorg/slf4j/Logger;
ldc "Loading new jar {}"
aload 3
invokevirtual java.io.File.getAbsolutePath:()Ljava/lang/String;
invokeinterface org.slf4j.Logger.info:(Ljava/lang/String;Ljava/lang/Object;)V
12: aload 3
aload 8
invokestatic com.google.common.io.Files.copy:(Ljava/io/File;Ljava/io/File;)V
13: aload 0
aload 8
invokevirtual java.io.File.toURI:()Ljava/net/URI;
invokevirtual java.net.URI.toURL:()Ljava/net/URL;
invokevirtual org.apache.cassandra.triggers.CustomClassLoader.addURL:(Ljava/net/URL;)V
end local 8 14: goto 17
15: StackMap locals:
StackMap stack: java.io.IOException
astore 8
start local 8 16: new java.io.IOError
dup
aload 8
invokespecial java.io.IOError.<init>:(Ljava/lang/Throwable;)V
athrow
end local 8 end local 7 end local 3 17: StackMap locals: org.apache.cassandra.triggers.CustomClassLoader java.io.File java.io.FilenameFilter top int int java.io.File[]
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
18: iload 4
iload 5
if_icmplt 4
19: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Lorg/apache/cassandra/triggers/CustomClassLoader;
0 20 1 dir Ljava/io/File;
3 20 2 filter Ljava/io/FilenameFilter;
5 17 3 inputJar Ljava/io/File;
6 17 7 lib Ljava/io/File;
10 14 8 out Ljava/io/File;
16 17 8 ex Ljava/io/IOException;
Exception table:
from to target type
9 14 15 Class java.io.IOException
MethodParameters:
Name Flags
dir
public java.lang.Class<?> loadClass(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/Class;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.cassandra.triggers.CustomClassLoader.cache:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Class
astore 2
start local 2 1: aload 2
ifnonnull 3
2: aload 0
aload 1
invokevirtual org.apache.cassandra.triggers.CustomClassLoader.loadClassInternal:(Ljava/lang/String;)Ljava/lang/Class;
areturn
3: StackMap locals: java.lang.Class
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/cassandra/triggers/CustomClassLoader;
0 4 1 name Ljava/lang/String;
1 4 2 clazz Ljava/lang/Class<*>;
Exceptions:
throws java.lang.ClassNotFoundException
Signature: (Ljava/lang/String;)Ljava/lang/Class<*>;
MethodParameters:
Name Flags
name
public synchronized java.lang.Class<?> loadClassInternal(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/Class;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.cassandra.triggers.CustomClassLoader.parent:Ljava/lang/ClassLoader;
aload 1
invokevirtual java.lang.ClassLoader.loadClass:(Ljava/lang/String;)Ljava/lang/Class;
1: areturn
2: StackMap locals:
StackMap stack: java.lang.ClassNotFoundException
astore 2
start local 2 3: getstatic org.apache.cassandra.triggers.CustomClassLoader.logger:Lorg/slf4j/Logger;
ldc "Class not found using parent class loader,"
aload 2
invokeinterface org.slf4j.Logger.trace:(Ljava/lang/String;Ljava/lang/Throwable;)V
end local 2 4: aload 0
aload 1
invokevirtual org.apache.cassandra.triggers.CustomClassLoader.findClass:(Ljava/lang/String;)Ljava/lang/Class;
astore 2
start local 2 5: aload 0
getfield org.apache.cassandra.triggers.CustomClassLoader.cache:Ljava/util/Map;
aload 1
aload 2
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
6: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/cassandra/triggers/CustomClassLoader;
0 7 1 name Ljava/lang/String;
3 4 2 ex Ljava/lang/ClassNotFoundException;
5 7 2 clazz Ljava/lang/Class<*>;
Exception table:
from to target type
0 1 2 Class java.lang.ClassNotFoundException
Exceptions:
throws java.lang.ClassNotFoundException
Signature: (Ljava/lang/String;)Ljava/lang/Class<*>;
MethodParameters:
Name Flags
name
}
SourceFile: "CustomClassLoader.java"
NestMembers:
org.apache.cassandra.triggers.CustomClassLoader$1
InnerClasses:
org.apache.cassandra.triggers.CustomClassLoader$1