public class org.springframework.boot.devtools.env.DevToolsHomePropertiesPostProcessor implements org.springframework.boot.env.EnvironmentPostProcessor
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.springframework.boot.devtools.env.DevToolsHomePropertiesPostProcessor
super_class: java.lang.Object
{
private static final java.lang.String LEGACY_FILE_NAME;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: ".spring-boot-devtools.properties"
private static final java.lang.String[] FILE_NAMES;
descriptor: [Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.String CONFIG_PATH;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "/.config/spring-boot/"
private static final java.util.Set<org.springframework.boot.env.PropertySourceLoader> PROPERTY_SOURCE_LOADERS;
descriptor: Ljava/util/Set;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/Set<Lorg/springframework/boot/env/PropertySourceLoader;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=1, args_size=0
0: iconst_3
anewarray java.lang.String
dup
iconst_0
ldc "spring-boot-devtools.yml"
aastore
dup
iconst_1
ldc "spring-boot-devtools.yaml"
aastore
dup
iconst_2
1: ldc "spring-boot-devtools.properties"
aastore
2: putstatic org.springframework.boot.devtools.env.DevToolsHomePropertiesPostProcessor.FILE_NAMES:[Ljava/lang/String;
3: new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
astore 0
start local 0 4: aload 0
new org.springframework.boot.env.PropertiesPropertySourceLoader
dup
invokespecial org.springframework.boot.env.PropertiesPropertySourceLoader.<init>:()V
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
5: ldc "org.yaml.snakeyaml.Yaml"
aconst_null
invokestatic org.springframework.util.ClassUtils.isPresent:(Ljava/lang/String;Ljava/lang/ClassLoader;)Z
ifeq 7
6: aload 0
new org.springframework.boot.env.YamlPropertySourceLoader
dup
invokespecial org.springframework.boot.env.YamlPropertySourceLoader.<init>:()V
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
7: StackMap locals: java.util.Set
StackMap stack:
aload 0
invokestatic java.util.Collections.unmodifiableSet:(Ljava/util/Set;)Ljava/util/Set;
putstatic org.springframework.boot.devtools.env.DevToolsHomePropertiesPostProcessor.PROPERTY_SOURCE_LOADERS:Ljava/util/Set;
end local 0 8: return
LocalVariableTable:
Start End Slot Name Signature
4 8 0 propertySourceLoaders Ljava/util/Set<Lorg/springframework/boot/env/PropertySourceLoader;>;
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/boot/devtools/env/DevToolsHomePropertiesPostProcessor;
public void postProcessEnvironment(org.springframework.core.env.ConfigurableEnvironment, org.springframework.boot.SpringApplication);
descriptor: (Lorg/springframework/core/env/ConfigurableEnvironment;Lorg/springframework/boot/SpringApplication;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokestatic org.springframework.boot.devtools.system.DevToolsEnablementDeducer.shouldEnable:(Ljava/lang/Thread;)Z
ifeq 5
1: aload 0
invokevirtual org.springframework.boot.devtools.env.DevToolsHomePropertiesPostProcessor.getPropertySources:()Ljava/util/List;
astore 3
start local 3 2: aload 3
invokeinterface java.util.List.isEmpty:()Z
ifeq 4
3: aload 0
aload 3
ldc ".spring-boot-devtools.properties"
invokedynamic apply()Ljava/util/function/Function;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Ljava/lang/Object;
org/springframework/boot/devtools/env/DevToolsHomePropertiesPostProcessor.lambda$0(Ljava/io/File;)Ljava/lang/String; (6)
(Ljava/io/File;)Ljava/lang/String;
invokevirtual org.springframework.boot.devtools.env.DevToolsHomePropertiesPostProcessor.addPropertySource:(Ljava/util/List;Ljava/lang/String;Ljava/util/function/Function;)V
4: StackMap locals: java.util.List
StackMap stack:
aload 3
aload 1
invokeinterface org.springframework.core.env.ConfigurableEnvironment.getPropertySources:()Lorg/springframework/core/env/MutablePropertySources;
dup
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
pop
invokedynamic accept(Lorg/springframework/core/env/MutablePropertySources;)Ljava/util/function/Consumer;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)V
org/springframework/core/env/MutablePropertySources.addFirst(Lorg/springframework/core/env/PropertySource;)V (5)
(Lorg/springframework/core/env/PropertySource;)V
invokeinterface java.util.List.forEach:(Ljava/util/function/Consumer;)V
end local 3 5: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/springframework/boot/devtools/env/DevToolsHomePropertiesPostProcessor;
0 6 1 environment Lorg/springframework/core/env/ConfigurableEnvironment;
0 6 2 application Lorg/springframework/boot/SpringApplication;
2 5 3 propertySources Ljava/util/List<Lorg/springframework/core/env/PropertySource<*>;>;
MethodParameters:
Name Flags
environment
application
private java.util.List<org.springframework.core.env.PropertySource<?>> getPropertySources();
descriptor: ()Ljava/util/List;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=6, args_size=1
start local 0 0: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 1
start local 1 1: getstatic org.springframework.boot.devtools.env.DevToolsHomePropertiesPostProcessor.FILE_NAMES:[Ljava/lang/String;
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 5
StackMap locals: org.springframework.boot.devtools.env.DevToolsHomePropertiesPostProcessor java.util.List top int int java.lang.String[]
StackMap stack:
2: aload 5
iload 3
aaload
astore 2
start local 2 3: aload 0
aload 1
new java.lang.StringBuilder
dup
ldc "/.config/spring-boot/"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 0
invokedynamic apply(Lorg/springframework/boot/devtools/env/DevToolsHomePropertiesPostProcessor;)Ljava/util/function/Function;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Ljava/lang/Object;
org/springframework/boot/devtools/env/DevToolsHomePropertiesPostProcessor.getPropertySourceName(Ljava/io/File;)Ljava/lang/String; (7)
(Ljava/io/File;)Ljava/lang/String;
invokevirtual org.springframework.boot.devtools.env.DevToolsHomePropertiesPostProcessor.addPropertySource:(Ljava/util/List;Ljava/lang/String;Ljava/util/function/Function;)V
end local 2 4: iinc 3 1
StackMap locals:
StackMap stack:
5: iload 3
iload 4
if_icmplt 2
6: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/springframework/boot/devtools/env/DevToolsHomePropertiesPostProcessor;
1 7 1 propertySources Ljava/util/List<Lorg/springframework/core/env/PropertySource<*>;>;
3 4 2 fileName Ljava/lang/String;
Signature: ()Ljava/util/List<Lorg/springframework/core/env/PropertySource<*>;>;
private java.lang.String getPropertySourceName(java.io.File);
descriptor: (Ljava/io/File;)Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: new java.lang.StringBuilder
dup
ldc "devtools-local: ["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.io.File.toURI:()Ljava/net/URI;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc "]"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/boot/devtools/env/DevToolsHomePropertiesPostProcessor;
0 1 1 file Ljava/io/File;
MethodParameters:
Name Flags
file
private void addPropertySource(java.util.List<org.springframework.core.env.PropertySource<?>>, java.lang.String, java.util.function.Function<java.io.File, java.lang.String>);
descriptor: (Ljava/util/List;Ljava/lang/String;Ljava/util/function/Function;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokevirtual org.springframework.boot.devtools.env.DevToolsHomePropertiesPostProcessor.getHomeDirectory:()Ljava/io/File;
astore 4
start local 4 1: aload 4
ifnull 2
new java.io.File
dup
aload 4
aload 2
invokespecial java.io.File.<init>:(Ljava/io/File;Ljava/lang/String;)V
goto 3
StackMap locals: java.io.File
StackMap stack:
2: aconst_null
StackMap locals:
StackMap stack: java.io.File
3: astore 5
start local 5 4: aload 5
ifnull 5
new org.springframework.core.io.FileSystemResource
dup
aload 5
invokespecial org.springframework.core.io.FileSystemResource.<init>:(Ljava/io/File;)V
goto 6
StackMap locals: java.io.File
StackMap stack:
5: aconst_null
StackMap locals:
StackMap stack: org.springframework.core.io.FileSystemResource
6: astore 6
start local 6 7: aload 6
ifnull 9
aload 6
invokevirtual org.springframework.core.io.FileSystemResource.exists:()Z
ifeq 9
aload 6
invokevirtual org.springframework.core.io.FileSystemResource.isFile:()Z
ifeq 9
8: aload 0
aload 1
aload 6
aload 3
invokevirtual org.springframework.boot.devtools.env.DevToolsHomePropertiesPostProcessor.addPropertySource:(Ljava/util/List;Lorg/springframework/core/io/FileSystemResource;Ljava/util/function/Function;)V
9: StackMap locals: org.springframework.core.io.FileSystemResource
StackMap stack:
return
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/springframework/boot/devtools/env/DevToolsHomePropertiesPostProcessor;
0 10 1 propertySources Ljava/util/List<Lorg/springframework/core/env/PropertySource<*>;>;
0 10 2 fileName Ljava/lang/String;
0 10 3 propertySourceNamer Ljava/util/function/Function<Ljava/io/File;Ljava/lang/String;>;
1 10 4 home Ljava/io/File;
4 10 5 file Ljava/io/File;
7 10 6 resource Lorg/springframework/core/io/FileSystemResource;
Signature: (Ljava/util/List<Lorg/springframework/core/env/PropertySource<*>;>;Ljava/lang/String;Ljava/util/function/Function<Ljava/io/File;Ljava/lang/String;>;)V
MethodParameters:
Name Flags
propertySources
fileName
propertySourceNamer
private void addPropertySource(java.util.List<org.springframework.core.env.PropertySource<?>>, org.springframework.core.io.FileSystemResource, java.util.function.Function<java.io.File, java.lang.String>);
descriptor: (Ljava/util/List;Lorg/springframework/core/io/FileSystemResource;Ljava/util/function/Function;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 3
aload 2
invokevirtual org.springframework.core.io.FileSystemResource.getFile:()Ljava/io/File;
invokeinterface java.util.function.Function.apply:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
astore 4
start local 4 1: getstatic org.springframework.boot.devtools.env.DevToolsHomePropertiesPostProcessor.PROPERTY_SOURCE_LOADERS:Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 6
goto 5
StackMap locals: org.springframework.boot.devtools.env.DevToolsHomePropertiesPostProcessor java.util.List org.springframework.core.io.FileSystemResource java.util.function.Function java.lang.String top java.util.Iterator
StackMap stack:
2: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.springframework.boot.env.PropertySourceLoader
astore 5
start local 5 3: aload 0
aload 5
aload 2
invokevirtual org.springframework.core.io.FileSystemResource.getFilename:()Ljava/lang/String;
invokevirtual org.springframework.boot.devtools.env.DevToolsHomePropertiesPostProcessor.canLoadFileExtension:(Lorg/springframework/boot/env/PropertySourceLoader;Ljava/lang/String;)Z
ifeq 5
4: aload 1
aload 5
aload 4
aload 2
invokeinterface org.springframework.boot.env.PropertySourceLoader.load:(Ljava/lang/String;Lorg/springframework/core/io/Resource;)Ljava/util/List;
invokeinterface java.util.List.addAll:(Ljava/util/Collection;)Z
pop
end local 5 5: StackMap locals:
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
end local 4 6: goto 9
7: StackMap locals: org.springframework.boot.devtools.env.DevToolsHomePropertiesPostProcessor java.util.List org.springframework.core.io.FileSystemResource java.util.function.Function
StackMap stack: java.io.IOException
astore 4
start local 4 8: new java.lang.IllegalStateException
dup
new java.lang.StringBuilder
dup
ldc "Unable to load "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual org.springframework.core.io.FileSystemResource.getFilename:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 4
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 4 9: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/springframework/boot/devtools/env/DevToolsHomePropertiesPostProcessor;
0 10 1 propertySources Ljava/util/List<Lorg/springframework/core/env/PropertySource<*>;>;
0 10 2 resource Lorg/springframework/core/io/FileSystemResource;
0 10 3 propertySourceNamer Ljava/util/function/Function<Ljava/io/File;Ljava/lang/String;>;
1 6 4 name Ljava/lang/String;
3 5 5 loader Lorg/springframework/boot/env/PropertySourceLoader;
8 9 4 ex Ljava/io/IOException;
Exception table:
from to target type
0 6 7 Class java.io.IOException
Signature: (Ljava/util/List<Lorg/springframework/core/env/PropertySource<*>;>;Lorg/springframework/core/io/FileSystemResource;Ljava/util/function/Function<Ljava/io/File;Ljava/lang/String;>;)V
MethodParameters:
Name Flags
propertySources
resource
propertySourceNamer
private boolean canLoadFileExtension(org.springframework.boot.env.PropertySourceLoader, java.lang.String);
descriptor: (Lorg/springframework/boot/env/PropertySourceLoader;Ljava/lang/String;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokeinterface org.springframework.boot.env.PropertySourceLoader.getFileExtensions:()[Ljava/lang/String;
invokestatic java.util.Arrays.stream:([Ljava/lang/Object;)Ljava/util/stream/Stream;
1: aload 2
invokedynamic test(Ljava/lang/String;)Ljava/util/function/Predicate;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Z
org/springframework/boot/devtools/env/DevToolsHomePropertiesPostProcessor.lambda$3(Ljava/lang/String;Ljava/lang/String;)Z (6)
(Ljava/lang/String;)Z
invokeinterface java.util.stream.Stream.anyMatch:(Ljava/util/function/Predicate;)Z
2: ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/boot/devtools/env/DevToolsHomePropertiesPostProcessor;
0 3 1 loader Lorg/springframework/boot/env/PropertySourceLoader;
0 3 2 name Ljava/lang/String;
MethodParameters:
Name Flags
loader
name
protected java.io.File getHomeDirectory();
descriptor: ()Ljava/io/File;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=2, args_size=1
start local 0 0: ldc "user.home"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 1
start local 1 1: aload 1
invokestatic org.springframework.util.StringUtils.hasLength:(Ljava/lang/String;)Z
ifeq 3
2: new java.io.File
dup
aload 1
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
areturn
3: StackMap locals: java.lang.String
StackMap stack:
aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/springframework/boot/devtools/env/DevToolsHomePropertiesPostProcessor;
1 4 1 home Ljava/lang/String;
private static java.lang.String lambda$0(java.io.File);
descriptor: (Ljava/io/File;)Ljava/lang/String;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: ldc "devtools-local"
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 file Ljava/io/File;
private static boolean lambda$3(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 1 0: aload 0
aload 1
invokestatic org.springframework.util.StringUtils.endsWithIgnoreCase:(Ljava/lang/String;Ljava/lang/String;)Z
ireturn
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 1 1 fileExtension Ljava/lang/String;
}
SourceFile: "DevToolsHomePropertiesPostProcessor.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles