class org.springframework.boot.cloud.CloudPlatform$5 extends org.springframework.boot.cloud.CloudPlatform
minor version: 0
major version: 59
flags: flags: (0x4020) ACC_SUPER, ACC_ANNOTATION
this_class: org.springframework.boot.cloud.CloudPlatform$5
super_class: org.springframework.boot.cloud.CloudPlatform
{
private static final java.lang.String KUBERNETES_SERVICE_HOST;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "KUBERNETES_SERVICE_HOST"
private static final java.lang.String KUBERNETES_SERVICE_PORT;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "KUBERNETES_SERVICE_PORT"
private static final java.lang.String SERVICE_HOST_SUFFIX;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "_SERVICE_HOST"
private static final java.lang.String SERVICE_PORT_SUFFIX;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "_SERVICE_PORT"
void <init>(java.lang.String, int);
descriptor: (Ljava/lang/String;I)V
flags: (0x0000)
Code:
stack=3, locals=3, args_size=3
start local 0 0: aload 0
aload 1
iload 2
invokespecial org.springframework.boot.cloud.CloudPlatform.<init>:(Ljava/lang/String;I)V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/boot/cloud/CloudPlatform$5;
MethodParameters:
Name Flags
$enum$name
$enum$ordinal
public boolean isDetected(org.springframework.core.env.Environment);
descriptor: (Lorg/springframework/core/env/Environment;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
instanceof org.springframework.core.env.ConfigurableEnvironment
ifeq 2
1: aload 0
aload 1
checkcast org.springframework.core.env.ConfigurableEnvironment
invokevirtual org.springframework.boot.cloud.CloudPlatform$5.isAutoDetected:(Lorg/springframework/core/env/ConfigurableEnvironment;)Z
ireturn
2: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/boot/cloud/CloudPlatform$5;
0 3 1 environment Lorg/springframework/core/env/Environment;
MethodParameters:
Name Flags
environment
private boolean isAutoDetected(org.springframework.core.env.ConfigurableEnvironment);
descriptor: (Lorg/springframework/core/env/ConfigurableEnvironment;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface org.springframework.core.env.ConfigurableEnvironment.getPropertySources:()Lorg/springframework/core/env/MutablePropertySources;
1: ldc "systemEnvironment"
invokevirtual org.springframework.core.env.MutablePropertySources.get:(Ljava/lang/String;)Lorg/springframework/core/env/PropertySource;
2: astore 2
start local 2 3: aload 2
ifnull 9
4: aload 2
ldc "KUBERNETES_SERVICE_HOST"
invokevirtual org.springframework.core.env.PropertySource.containsProperty:(Ljava/lang/String;)Z
ifeq 7
5: aload 2
ldc "KUBERNETES_SERVICE_PORT"
invokevirtual org.springframework.core.env.PropertySource.containsProperty:(Ljava/lang/String;)Z
ifeq 7
6: iconst_1
ireturn
7: StackMap locals: org.springframework.core.env.PropertySource
StackMap stack:
aload 2
instanceof org.springframework.core.env.EnumerablePropertySource
ifeq 9
8: aload 0
aload 2
checkcast org.springframework.core.env.EnumerablePropertySource
invokevirtual org.springframework.boot.cloud.CloudPlatform$5.isAutoDetected:(Lorg/springframework/core/env/EnumerablePropertySource;)Z
ireturn
9: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/springframework/boot/cloud/CloudPlatform$5;
0 10 1 environment Lorg/springframework/core/env/ConfigurableEnvironment;
3 10 2 environmentPropertySource Lorg/springframework/core/env/PropertySource<*>;
MethodParameters:
Name Flags
environment
private boolean isAutoDetected(org.springframework.core.env.EnumerablePropertySource<?>);
descriptor: (Lorg/springframework/core/env/EnumerablePropertySource;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=7, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual org.springframework.core.env.EnumerablePropertySource.getPropertyNames:()[Ljava/lang/String;
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 9
StackMap locals: org.springframework.boot.cloud.CloudPlatform$5 org.springframework.core.env.EnumerablePropertySource top int int java.lang.String[]
StackMap stack:
1: aload 5
iload 3
aaload
astore 2
start local 2 2: aload 2
ldc "_SERVICE_HOST"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 8
3: aload 2
iconst_0
4: aload 2
invokevirtual java.lang.String.length:()I
ldc "_SERVICE_HOST"
invokevirtual java.lang.String.length:()I
isub
5: invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 6
start local 6 6: aload 1
new java.lang.StringBuilder
dup
aload 6
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "_SERVICE_PORT"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.springframework.core.env.EnumerablePropertySource.getProperty:(Ljava/lang/String;)Ljava/lang/Object;
ifnull 8
7: iconst_1
ireturn
end local 6 end local 2 8: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
9: iload 3
iload 4
if_icmplt 1
10: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/springframework/boot/cloud/CloudPlatform$5;
0 11 1 environmentPropertySource Lorg/springframework/core/env/EnumerablePropertySource<*>;
2 8 2 propertyName Ljava/lang/String;
6 8 6 serviceName Ljava/lang/String;
Signature: (Lorg/springframework/core/env/EnumerablePropertySource<*>;)Z
MethodParameters:
Name Flags
environmentPropertySource
}
SourceFile: "CloudPlatform.java"
EnclosingMethod: org.springframework.boot.cloud.CloudPlatform
NestHost: org.springframework.boot.cloud.CloudPlatform
InnerClasses:
org.springframework.boot.cloud.CloudPlatform$5