public class org.springframework.boot.devtools.restart.server.RestartServer
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.springframework.boot.devtools.restart.server.RestartServer
super_class: java.lang.Object
{
private static final org.apache.commons.logging.Log logger;
descriptor: Lorg/apache/commons/logging/Log;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final org.springframework.boot.devtools.restart.server.SourceDirectoryUrlFilter sourceDirectoryUrlFilter;
descriptor: Lorg/springframework/boot/devtools/restart/server/SourceDirectoryUrlFilter;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.ClassLoader classLoader;
descriptor: Ljava/lang/ClassLoader;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/springframework/boot/devtools/restart/server/RestartServer;
invokestatic org.apache.commons.logging.LogFactory.getLog:(Ljava/lang/Class;)Lorg/apache/commons/logging/Log;
putstatic org.springframework.boot.devtools.restart.server.RestartServer.logger:Lorg/apache/commons/logging/Log;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(org.springframework.boot.devtools.restart.server.SourceDirectoryUrlFilter);
descriptor: (Lorg/springframework/boot/devtools/restart/server/SourceDirectoryUrlFilter;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.getContextClassLoader:()Ljava/lang/ClassLoader;
invokespecial org.springframework.boot.devtools.restart.server.RestartServer.<init>:(Lorg/springframework/boot/devtools/restart/server/SourceDirectoryUrlFilter;Ljava/lang/ClassLoader;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/boot/devtools/restart/server/RestartServer;
0 2 1 sourceDirectoryUrlFilter Lorg/springframework/boot/devtools/restart/server/SourceDirectoryUrlFilter;
MethodParameters:
Name Flags
sourceDirectoryUrlFilter
public void <init>(org.springframework.boot.devtools.restart.server.SourceDirectoryUrlFilter, java.lang.ClassLoader);
descriptor: (Lorg/springframework/boot/devtools/restart/server/SourceDirectoryUrlFilter;Ljava/lang/ClassLoader;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 1
ldc "SourceDirectoryUrlFilter must not be null"
invokestatic org.springframework.util.Assert.notNull:(Ljava/lang/Object;Ljava/lang/String;)V
2: aload 2
ldc "ClassLoader must not be null"
invokestatic org.springframework.util.Assert.notNull:(Ljava/lang/Object;Ljava/lang/String;)V
3: aload 0
aload 1
putfield org.springframework.boot.devtools.restart.server.RestartServer.sourceDirectoryUrlFilter:Lorg/springframework/boot/devtools/restart/server/SourceDirectoryUrlFilter;
4: aload 0
aload 2
putfield org.springframework.boot.devtools.restart.server.RestartServer.classLoader:Ljava/lang/ClassLoader;
5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/springframework/boot/devtools/restart/server/RestartServer;
0 6 1 sourceDirectoryUrlFilter Lorg/springframework/boot/devtools/restart/server/SourceDirectoryUrlFilter;
0 6 2 classLoader Ljava/lang/ClassLoader;
MethodParameters:
Name Flags
sourceDirectoryUrlFilter
classLoader
public void updateAndRestart(org.springframework.boot.devtools.restart.classloader.ClassLoaderFiles);
descriptor: (Lorg/springframework/boot/devtools/restart/classloader/ClassLoaderFiles;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=10, args_size=2
start local 0 start local 1 0: new java.util.LinkedHashSet
dup
invokespecial java.util.LinkedHashSet.<init>:()V
astore 2
start local 2 1: aload 0
invokevirtual org.springframework.boot.devtools.restart.server.RestartServer.getClassLoaderUrls:()Ljava/util/Set;
astore 3
start local 3 2: aload 1
invokevirtual org.springframework.boot.devtools.restart.classloader.ClassLoaderFiles.getSourceDirectories:()Ljava/util/Collection;
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 5
goto 13
StackMap locals: org.springframework.boot.devtools.restart.server.RestartServer org.springframework.boot.devtools.restart.classloader.ClassLoaderFiles java.util.Set java.util.Set top java.util.Iterator
StackMap stack:
3: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.springframework.boot.devtools.restart.classloader.ClassLoaderFiles$SourceDirectory
astore 4
start local 4 4: aload 4
invokevirtual org.springframework.boot.devtools.restart.classloader.ClassLoaderFiles$SourceDirectory.getFilesEntrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 7
goto 11
StackMap locals: org.springframework.boot.devtools.restart.server.RestartServer org.springframework.boot.devtools.restart.classloader.ClassLoaderFiles java.util.Set java.util.Set org.springframework.boot.devtools.restart.classloader.ClassLoaderFiles$SourceDirectory java.util.Iterator top java.util.Iterator
StackMap stack:
5: aload 7
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 6
start local 6 6: aload 3
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 9
goto 10
StackMap locals: org.springframework.boot.devtools.restart.server.RestartServer org.springframework.boot.devtools.restart.classloader.ClassLoaderFiles java.util.Set java.util.Set org.springframework.boot.devtools.restart.classloader.ClassLoaderFiles$SourceDirectory java.util.Iterator java.util.Map$Entry java.util.Iterator top java.util.Iterator
StackMap stack:
7: aload 9
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.net.URL
astore 8
start local 8 8: aload 0
aload 8
aload 6
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast java.lang.String
aload 6
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
checkcast org.springframework.boot.devtools.restart.classloader.ClassLoaderFile
invokevirtual org.springframework.boot.devtools.restart.server.RestartServer.updateFileSystem:(Ljava/net/URL;Ljava/lang/String;Lorg/springframework/boot/devtools/restart/classloader/ClassLoaderFile;)Z
ifeq 10
9: aload 2
aload 8
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
end local 8 10: StackMap locals:
StackMap stack:
aload 9
invokeinterface java.util.Iterator.hasNext:()Z
ifne 7
end local 6 11: StackMap locals: org.springframework.boot.devtools.restart.server.RestartServer org.springframework.boot.devtools.restart.classloader.ClassLoaderFiles java.util.Set java.util.Set org.springframework.boot.devtools.restart.classloader.ClassLoaderFiles$SourceDirectory java.util.Iterator top java.util.Iterator
StackMap stack:
aload 7
invokeinterface java.util.Iterator.hasNext:()Z
ifne 5
12: aload 2
aload 0
aload 3
aload 4
invokevirtual org.springframework.boot.devtools.restart.classloader.ClassLoaderFiles$SourceDirectory.getName:()Ljava/lang/String;
invokevirtual org.springframework.boot.devtools.restart.server.RestartServer.getMatchingUrls:(Ljava/util/Set;Ljava/lang/String;)Ljava/util/Set;
invokeinterface java.util.Set.addAll:(Ljava/util/Collection;)Z
pop
end local 4 13: StackMap locals: org.springframework.boot.devtools.restart.server.RestartServer org.springframework.boot.devtools.restart.classloader.ClassLoaderFiles java.util.Set java.util.Set top java.util.Iterator
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
14: aload 0
aload 2
invokevirtual org.springframework.boot.devtools.restart.server.RestartServer.updateTimeStamp:(Ljava/lang/Iterable;)V
15: aload 0
aload 2
aload 1
invokevirtual org.springframework.boot.devtools.restart.server.RestartServer.restart:(Ljava/util/Set;Lorg/springframework/boot/devtools/restart/classloader/ClassLoaderFiles;)V
16: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lorg/springframework/boot/devtools/restart/server/RestartServer;
0 17 1 files Lorg/springframework/boot/devtools/restart/classloader/ClassLoaderFiles;
1 17 2 urls Ljava/util/Set<Ljava/net/URL;>;
2 17 3 classLoaderUrls Ljava/util/Set<Ljava/net/URL;>;
4 13 4 directory Lorg/springframework/boot/devtools/restart/classloader/ClassLoaderFiles$SourceDirectory;
6 11 6 entry Ljava/util/Map$Entry<Ljava/lang/String;Lorg/springframework/boot/devtools/restart/classloader/ClassLoaderFile;>;
8 10 8 url Ljava/net/URL;
MethodParameters:
Name Flags
files
private boolean updateFileSystem(java.net.URL, java.lang.String, org.springframework.boot.devtools.restart.classloader.ClassLoaderFile);
descriptor: (Ljava/net/URL;Ljava/lang/String;Lorg/springframework/boot/devtools/restart/classloader/ClassLoaderFile;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
invokevirtual java.net.URL.toString:()Ljava/lang/String;
invokevirtual org.springframework.boot.devtools.restart.server.RestartServer.isDirectoryUrl:(Ljava/lang/String;)Z
ifne 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 1
invokestatic org.springframework.util.ResourceUtils.getFile:(Ljava/net/URL;)Ljava/io/File;
astore 4
start local 4 3: new java.io.File
dup
aload 4
aload 2
invokespecial java.io.File.<init>:(Ljava/io/File;Ljava/lang/String;)V
astore 5
start local 5 4: aload 5
invokevirtual java.io.File.exists:()Z
ifeq 11
aload 5
invokevirtual java.io.File.canWrite:()Z
ifeq 11
5: aload 3
invokevirtual org.springframework.boot.devtools.restart.classloader.ClassLoaderFile.getKind:()Lorg/springframework/boot/devtools/restart/classloader/ClassLoaderFile$Kind;
getstatic org.springframework.boot.devtools.restart.classloader.ClassLoaderFile$Kind.DELETED:Lorg/springframework/boot/devtools/restart/classloader/ClassLoaderFile$Kind;
if_acmpne 8
6: aload 5
invokevirtual java.io.File.delete:()Z
7: ireturn
8: StackMap locals: java.io.File java.io.File
StackMap stack:
aload 3
invokevirtual org.springframework.boot.devtools.restart.classloader.ClassLoaderFile.getContents:()[B
aload 5
invokestatic org.springframework.util.FileCopyUtils.copy:([BLjava/io/File;)V
9: iconst_1
ireturn
end local 5 end local 4 10: StackMap locals: org.springframework.boot.devtools.restart.server.RestartServer java.net.URL java.lang.String org.springframework.boot.devtools.restart.classloader.ClassLoaderFile
StackMap stack: java.io.IOException
pop
11: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/springframework/boot/devtools/restart/server/RestartServer;
0 12 1 url Ljava/net/URL;
0 12 2 name Ljava/lang/String;
0 12 3 classLoaderFile Lorg/springframework/boot/devtools/restart/classloader/ClassLoaderFile;
3 10 4 directory Ljava/io/File;
4 10 5 file Ljava/io/File;
Exception table:
from to target type
2 7 10 Class java.io.IOException
8 9 10 Class java.io.IOException
MethodParameters:
Name Flags
url
name
classLoaderFile
private boolean isDirectoryUrl(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ldc "file:"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 1
aload 1
ldc "/"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/boot/devtools/restart/server/RestartServer;
0 2 1 urlString Ljava/lang/String;
MethodParameters:
Name Flags
urlString
private java.util.Set<java.net.URL> getMatchingUrls(java.util.Set<java.net.URL>, java.lang.String);
descriptor: (Ljava/util/Set;Ljava/lang/String;)Ljava/util/Set;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=6, args_size=3
start local 0 start local 1 start local 2 0: new java.util.LinkedHashSet
dup
invokespecial java.util.LinkedHashSet.<init>:()V
astore 3
start local 3 1: aload 1
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 5
goto 7
StackMap locals: org.springframework.boot.devtools.restart.server.RestartServer java.util.Set java.lang.String java.util.Set top java.util.Iterator
StackMap stack:
2: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.net.URL
astore 4
start local 4 3: aload 0
getfield org.springframework.boot.devtools.restart.server.RestartServer.sourceDirectoryUrlFilter:Lorg/springframework/boot/devtools/restart/server/SourceDirectoryUrlFilter;
aload 2
aload 4
invokeinterface org.springframework.boot.devtools.restart.server.SourceDirectoryUrlFilter.isMatch:(Ljava/lang/String;Ljava/net/URL;)Z
ifeq 7
4: getstatic org.springframework.boot.devtools.restart.server.RestartServer.logger:Lorg/apache/commons/logging/Log;
invokeinterface org.apache.commons.logging.Log.isDebugEnabled:()Z
ifeq 6
5: getstatic org.springframework.boot.devtools.restart.server.RestartServer.logger:Lorg/apache/commons/logging/Log;
new java.lang.StringBuilder
dup
ldc "URL "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " matched against source directory "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface org.apache.commons.logging.Log.debug:(Ljava/lang/Object;)V
6: StackMap locals: org.springframework.boot.devtools.restart.server.RestartServer java.util.Set java.lang.String java.util.Set java.net.URL java.util.Iterator
StackMap stack:
aload 3
aload 4
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
end local 4 7: StackMap locals: org.springframework.boot.devtools.restart.server.RestartServer java.util.Set java.lang.String java.util.Set top java.util.Iterator
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
8: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/springframework/boot/devtools/restart/server/RestartServer;
0 9 1 urls Ljava/util/Set<Ljava/net/URL;>;
0 9 2 sourceDirectory Ljava/lang/String;
1 9 3 matchingUrls Ljava/util/Set<Ljava/net/URL;>;
3 7 4 url Ljava/net/URL;
Signature: (Ljava/util/Set<Ljava/net/URL;>;Ljava/lang/String;)Ljava/util/Set<Ljava/net/URL;>;
MethodParameters:
Name Flags
urls
sourceDirectory
private java.util.Set<java.net.URL> getClassLoaderUrls();
descriptor: ()Ljava/util/Set;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=1
start local 0 0: new java.util.LinkedHashSet
dup
invokespecial java.util.LinkedHashSet.<init>:()V
astore 1
start local 1 1: aload 0
getfield org.springframework.boot.devtools.restart.server.RestartServer.classLoader:Ljava/lang/ClassLoader;
astore 2
start local 2 2: goto 6
3: StackMap locals: java.util.Set java.lang.ClassLoader
StackMap stack:
aload 2
instanceof java.net.URLClassLoader
ifeq 5
4: aload 1
aload 2
checkcast java.net.URLClassLoader
invokevirtual java.net.URLClassLoader.getURLs:()[Ljava/net/URL;
invokestatic java.util.Collections.addAll:(Ljava/util/Collection;[Ljava/lang/Object;)Z
pop
5: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.lang.ClassLoader.getParent:()Ljava/lang/ClassLoader;
astore 2
6: StackMap locals:
StackMap stack:
aload 2
ifnonnull 3
7: aload 1
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/springframework/boot/devtools/restart/server/RestartServer;
1 8 1 urls Ljava/util/Set<Ljava/net/URL;>;
2 8 2 classLoader Ljava/lang/ClassLoader;
Signature: ()Ljava/util/Set<Ljava/net/URL;>;
private void updateTimeStamp(java.lang.Iterable<java.net.URL>);
descriptor: (Ljava/lang/Iterable;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface java.lang.Iterable.iterator:()Ljava/util/Iterator;
astore 3
goto 3
StackMap locals: org.springframework.boot.devtools.restart.server.RestartServer java.lang.Iterable top java.util.Iterator
StackMap stack:
1: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.net.URL
astore 2
start local 2 2: aload 0
aload 2
invokevirtual org.springframework.boot.devtools.restart.server.RestartServer.updateTimeStamp:(Ljava/net/URL;)V
end local 2 3: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/springframework/boot/devtools/restart/server/RestartServer;
0 5 1 urls Ljava/lang/Iterable<Ljava/net/URL;>;
2 3 2 url Ljava/net/URL;
Signature: (Ljava/lang/Iterable<Ljava/net/URL;>;)V
MethodParameters:
Name Flags
urls
private void updateTimeStamp(java.net.URL);
descriptor: (Ljava/net/URL;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokestatic org.springframework.util.ResourceUtils.extractJarFileURL:(Ljava/net/URL;)Ljava/net/URL;
astore 2
start local 2 1: aload 2
ldc "Jar URL"
invokestatic org.springframework.util.ResourceUtils.getFile:(Ljava/net/URL;Ljava/lang/String;)Ljava/io/File;
astore 3
start local 3 2: aload 3
invokestatic java.lang.System.currentTimeMillis:()J
invokevirtual java.io.File.setLastModified:(J)Z
pop
end local 3 end local 2 3: goto 5
4: StackMap locals:
StackMap stack: java.lang.Exception
pop
5: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/springframework/boot/devtools/restart/server/RestartServer;
0 6 1 url Ljava/net/URL;
1 3 2 actualUrl Ljava/net/URL;
2 3 3 file Ljava/io/File;
Exception table:
from to target type
0 3 4 Class java.lang.Exception
MethodParameters:
Name Flags
url
protected void restart(java.util.Set<java.net.URL>, org.springframework.boot.devtools.restart.classloader.ClassLoaderFiles);
descriptor: (Ljava/util/Set;Lorg/springframework/boot/devtools/restart/classloader/ClassLoaderFiles;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=4, args_size=3
start local 0 start local 1 start local 2 0: invokestatic org.springframework.boot.devtools.restart.Restarter.getInstance:()Lorg/springframework/boot/devtools/restart/Restarter;
astore 3
start local 3 1: aload 3
aload 1
invokevirtual org.springframework.boot.devtools.restart.Restarter.addUrls:(Ljava/util/Collection;)V
2: aload 3
aload 2
invokevirtual org.springframework.boot.devtools.restart.Restarter.addClassLoaderFiles:(Lorg/springframework/boot/devtools/restart/classloader/ClassLoaderFiles;)V
3: aload 3
invokevirtual org.springframework.boot.devtools.restart.Restarter.restart:()V
4: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/springframework/boot/devtools/restart/server/RestartServer;
0 5 1 urls Ljava/util/Set<Ljava/net/URL;>;
0 5 2 files Lorg/springframework/boot/devtools/restart/classloader/ClassLoaderFiles;
1 5 3 restarter Lorg/springframework/boot/devtools/restart/Restarter;
Signature: (Ljava/util/Set<Ljava/net/URL;>;Lorg/springframework/boot/devtools/restart/classloader/ClassLoaderFiles;)V
MethodParameters:
Name Flags
urls
files
}
SourceFile: "RestartServer.java"
InnerClasses:
public abstract Entry = java.util.Map$Entry of java.util.Map
public final Kind = org.springframework.boot.devtools.restart.classloader.ClassLoaderFile$Kind of org.springframework.boot.devtools.restart.classloader.ClassLoaderFile
public SourceDirectory = org.springframework.boot.devtools.restart.classloader.ClassLoaderFiles$SourceDirectory of org.springframework.boot.devtools.restart.classloader.ClassLoaderFiles