public class org.springframework.boot.web.context.ServerPortInfoApplicationContextInitializer implements org.springframework.context.ApplicationContextInitializer<org.springframework.context.ConfigurableApplicationContext>, org.springframework.context.ApplicationListener<org.springframework.boot.web.context.WebServerInitializedEvent>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.springframework.boot.web.context.ServerPortInfoApplicationContextInitializer
super_class: java.lang.Object
{
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/web/context/ServerPortInfoApplicationContextInitializer;
public void initialize(org.springframework.context.ConfigurableApplicationContext);
descriptor: (Lorg/springframework/context/ConfigurableApplicationContext;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
aload 0
invokeinterface org.springframework.context.ConfigurableApplicationContext.addApplicationListener:(Lorg/springframework/context/ApplicationListener;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/boot/web/context/ServerPortInfoApplicationContextInitializer;
0 2 1 applicationContext Lorg/springframework/context/ConfigurableApplicationContext;
MethodParameters:
Name Flags
applicationContext
public void onApplicationEvent(org.springframework.boot.web.context.WebServerInitializedEvent);
descriptor: (Lorg/springframework/boot/web/context/WebServerInitializedEvent;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: new java.lang.StringBuilder
dup
ldc "local."
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
aload 1
invokevirtual org.springframework.boot.web.context.WebServerInitializedEvent.getApplicationContext:()Lorg/springframework/boot/web/context/WebServerApplicationContext;
invokevirtual org.springframework.boot.web.context.ServerPortInfoApplicationContextInitializer.getName:(Lorg/springframework/boot/web/context/WebServerApplicationContext;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ".port"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 2
start local 2 1: aload 0
aload 1
invokevirtual org.springframework.boot.web.context.WebServerInitializedEvent.getApplicationContext:()Lorg/springframework/boot/web/context/WebServerApplicationContext;
aload 2
aload 1
invokevirtual org.springframework.boot.web.context.WebServerInitializedEvent.getWebServer:()Lorg/springframework/boot/web/server/WebServer;
invokeinterface org.springframework.boot.web.server.WebServer.getPort:()I
invokevirtual org.springframework.boot.web.context.ServerPortInfoApplicationContextInitializer.setPortProperty:(Lorg/springframework/context/ApplicationContext;Ljava/lang/String;I)V
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/boot/web/context/ServerPortInfoApplicationContextInitializer;
0 3 1 event Lorg/springframework/boot/web/context/WebServerInitializedEvent;
1 3 2 propertyName Ljava/lang/String;
MethodParameters:
Name Flags
event
private java.lang.String getName(org.springframework.boot.web.context.WebServerApplicationContext);
descriptor: (Lorg/springframework/boot/web/context/WebServerApplicationContext;)Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface org.springframework.boot.web.context.WebServerApplicationContext.getServerNamespace:()Ljava/lang/String;
astore 2
start local 2 1: aload 2
invokestatic org.springframework.util.StringUtils.hasText:(Ljava/lang/String;)Z
ifeq 2
aload 2
goto 3
StackMap locals: java.lang.String
StackMap stack:
2: ldc "server"
StackMap locals:
StackMap stack: java.lang.String
3: areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/springframework/boot/web/context/ServerPortInfoApplicationContextInitializer;
0 4 1 context Lorg/springframework/boot/web/context/WebServerApplicationContext;
1 4 2 name Ljava/lang/String;
MethodParameters:
Name Flags
context
private void setPortProperty(org.springframework.context.ApplicationContext, java.lang.String, int);
descriptor: (Lorg/springframework/context/ApplicationContext;Ljava/lang/String;I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
instanceof org.springframework.context.ConfigurableApplicationContext
ifeq 2
1: aload 0
aload 1
checkcast org.springframework.context.ConfigurableApplicationContext
invokeinterface org.springframework.context.ConfigurableApplicationContext.getEnvironment:()Lorg/springframework/core/env/ConfigurableEnvironment;
aload 2
iload 3
invokevirtual org.springframework.boot.web.context.ServerPortInfoApplicationContextInitializer.setPortProperty:(Lorg/springframework/core/env/ConfigurableEnvironment;Ljava/lang/String;I)V
2: StackMap locals:
StackMap stack:
aload 1
invokeinterface org.springframework.context.ApplicationContext.getParent:()Lorg/springframework/context/ApplicationContext;
ifnull 4
3: aload 0
aload 1
invokeinterface org.springframework.context.ApplicationContext.getParent:()Lorg/springframework/context/ApplicationContext;
aload 2
iload 3
invokevirtual org.springframework.boot.web.context.ServerPortInfoApplicationContextInitializer.setPortProperty:(Lorg/springframework/context/ApplicationContext;Ljava/lang/String;I)V
4: StackMap locals:
StackMap stack:
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/web/context/ServerPortInfoApplicationContextInitializer;
0 5 1 context Lorg/springframework/context/ApplicationContext;
0 5 2 propertyName Ljava/lang/String;
0 5 3 port I
MethodParameters:
Name Flags
context
propertyName
port
private void setPortProperty(org.springframework.core.env.ConfigurableEnvironment, java.lang.String, int);
descriptor: (Lorg/springframework/core/env/ConfigurableEnvironment;Ljava/lang/String;I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
invokeinterface org.springframework.core.env.ConfigurableEnvironment.getPropertySources:()Lorg/springframework/core/env/MutablePropertySources;
astore 4
start local 4 1: aload 4
ldc "server.ports"
invokevirtual org.springframework.core.env.MutablePropertySources.get:(Ljava/lang/String;)Lorg/springframework/core/env/PropertySource;
astore 5
start local 5 2: aload 5
ifnonnull 5
3: new org.springframework.core.env.MapPropertySource
dup
ldc "server.ports"
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
invokespecial org.springframework.core.env.MapPropertySource.<init>:(Ljava/lang/String;Ljava/util/Map;)V
astore 5
4: aload 4
aload 5
invokevirtual org.springframework.core.env.MutablePropertySources.addFirst:(Lorg/springframework/core/env/PropertySource;)V
5: StackMap locals: org.springframework.core.env.MutablePropertySources org.springframework.core.env.PropertySource
StackMap stack:
aload 5
invokevirtual org.springframework.core.env.PropertySource.getSource:()Ljava/lang/Object;
checkcast java.util.Map
aload 2
iload 3
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
6: return
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 7 0 this Lorg/springframework/boot/web/context/ServerPortInfoApplicationContextInitializer;
0 7 1 environment Lorg/springframework/core/env/ConfigurableEnvironment;
0 7 2 propertyName Ljava/lang/String;
0 7 3 port I
1 7 4 sources Lorg/springframework/core/env/MutablePropertySources;
2 7 5 source Lorg/springframework/core/env/PropertySource<*>;
MethodParameters:
Name Flags
environment
propertyName
port
public void onApplicationEvent(org.springframework.context.ApplicationEvent);
descriptor: (Lorg/springframework/context/ApplicationEvent;)V
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
checkcast org.springframework.boot.web.context.WebServerInitializedEvent
invokevirtual org.springframework.boot.web.context.ServerPortInfoApplicationContextInitializer.onApplicationEvent:(Lorg/springframework/boot/web/context/WebServerInitializedEvent;)V
return
LocalVariableTable:
Start End Slot Name Signature
}
Signature: Ljava/lang/Object;Lorg/springframework/context/ApplicationContextInitializer<Lorg/springframework/context/ConfigurableApplicationContext;>;Lorg/springframework/context/ApplicationListener<Lorg/springframework/boot/web/context/WebServerInitializedEvent;>;
SourceFile: "ServerPortInfoApplicationContextInitializer.java"