public class org.springframework.boot.env.RandomValuePropertySource extends org.springframework.core.env.PropertySource<java.util.Random>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.springframework.boot.env.RandomValuePropertySource
super_class: org.springframework.core.env.PropertySource
{
public static final java.lang.String RANDOM_PROPERTY_SOURCE_NAME;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "random"
private static final java.lang.String PREFIX;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "random."
private static final org.apache.commons.logging.Log logger;
descriptor: Lorg/apache/commons/logging/Log;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/springframework/boot/env/RandomValuePropertySource;
invokestatic org.apache.commons.logging.LogFactory.getLog:(Ljava/lang/Class;)Lorg/apache/commons/logging/Log;
putstatic org.springframework.boot.env.RandomValuePropertySource.logger:Lorg/apache/commons/logging/Log;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ldc "random"
invokespecial org.springframework.boot.env.RandomValuePropertySource.<init>:(Ljava/lang/String;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/boot/env/RandomValuePropertySource;
public void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
new java.util.Random
dup
invokespecial java.util.Random.<init>:()V
invokespecial org.springframework.core.env.PropertySource.<init>:(Ljava/lang/String;Ljava/lang/Object;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/boot/env/RandomValuePropertySource;
0 2 1 name Ljava/lang/String;
MethodParameters:
Name Flags
name
public java.lang.Object getProperty(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ldc "random."
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
getstatic org.springframework.boot.env.RandomValuePropertySource.logger:Lorg/apache/commons/logging/Log;
ldc "Generating random property for '%s'"
aload 1
invokestatic org.springframework.core.log.LogMessage.format:(Ljava/lang/String;Ljava/lang/Object;)Lorg/springframework/core/log/LogMessage;
invokeinterface org.apache.commons.logging.Log.trace:(Ljava/lang/Object;)V
3: aload 0
aload 1
ldc "random."
invokevirtual java.lang.String.length:()I
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokevirtual org.springframework.boot.env.RandomValuePropertySource.getRandomValue:(Ljava/lang/String;)Ljava/lang/Object;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/springframework/boot/env/RandomValuePropertySource;
0 4 1 name Ljava/lang/String;
MethodParameters:
Name Flags
name
private java.lang.Object getRandomValue(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 1
ldc "int"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 2
1: aload 0
invokevirtual org.springframework.boot.env.RandomValuePropertySource.getSource:()Ljava/lang/Object;
checkcast java.util.Random
invokevirtual java.util.Random.nextInt:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
areturn
2: StackMap locals:
StackMap stack:
aload 1
ldc "long"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 4
3: aload 0
invokevirtual org.springframework.boot.env.RandomValuePropertySource.getSource:()Ljava/lang/Object;
checkcast java.util.Random
invokevirtual java.util.Random.nextLong:()J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
areturn
4: StackMap locals:
StackMap stack:
aload 0
aload 1
ldc "int"
invokevirtual org.springframework.boot.env.RandomValuePropertySource.getRange:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 2
start local 2 5: aload 2
ifnull 7
6: aload 0
aload 2
invokevirtual org.springframework.boot.env.RandomValuePropertySource.getNextIntInRange:(Ljava/lang/String;)I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
areturn
7: StackMap locals: java.lang.String
StackMap stack:
aload 0
aload 1
ldc "long"
invokevirtual org.springframework.boot.env.RandomValuePropertySource.getRange:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 2
8: aload 2
ifnull 10
9: aload 0
aload 2
invokevirtual org.springframework.boot.env.RandomValuePropertySource.getNextLongInRange:(Ljava/lang/String;)J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
areturn
10: StackMap locals:
StackMap stack:
aload 1
ldc "uuid"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 12
11: invokestatic java.util.UUID.randomUUID:()Ljava/util/UUID;
invokevirtual java.util.UUID.toString:()Ljava/lang/String;
areturn
12: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.springframework.boot.env.RandomValuePropertySource.getRandomBytes:()Ljava/lang/Object;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lorg/springframework/boot/env/RandomValuePropertySource;
0 13 1 type Ljava/lang/String;
5 13 2 range Ljava/lang/String;
MethodParameters:
Name Flags
type
private java.lang.String getRange(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 1
aload 2
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 4
1: aload 2
invokevirtual java.lang.String.length:()I
iconst_1
iadd
istore 3
start local 3 2: aload 1
invokevirtual java.lang.String.length:()I
iload 3
if_icmple 4
3: aload 1
iload 3
aload 1
invokevirtual java.lang.String.length:()I
iconst_1
isub
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
areturn
end local 3 4: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/springframework/boot/env/RandomValuePropertySource;
0 5 1 type Ljava/lang/String;
0 5 2 prefix Ljava/lang/String;
2 4 3 startIndex I
MethodParameters:
Name Flags
type
prefix
private int getNextIntInRange(java.lang.String);
descriptor: (Ljava/lang/String;)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokestatic org.springframework.util.StringUtils.commaDelimitedListToStringArray:(Ljava/lang/String;)[Ljava/lang/String;
astore 2
start local 2 1: aload 2
iconst_0
aaload
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
istore 3
start local 3 2: aload 2
arraylength
iconst_1
if_icmpne 4
3: aload 0
invokevirtual org.springframework.boot.env.RandomValuePropertySource.getSource:()Ljava/lang/Object;
checkcast java.util.Random
iload 3
invokevirtual java.util.Random.nextInt:(I)I
ireturn
4: StackMap locals: java.lang.String[] int
StackMap stack:
iload 3
aload 0
invokevirtual org.springframework.boot.env.RandomValuePropertySource.getSource:()Ljava/lang/Object;
checkcast java.util.Random
aload 2
iconst_1
aaload
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
iload 3
isub
invokevirtual java.util.Random.nextInt:(I)I
iadd
ireturn
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/env/RandomValuePropertySource;
0 5 1 range Ljava/lang/String;
1 5 2 tokens [Ljava/lang/String;
2 5 3 start I
MethodParameters:
Name Flags
range
private long getNextLongInRange(java.lang.String);
descriptor: (Ljava/lang/String;)J
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=7, args_size=2
start local 0 start local 1 0: aload 1
invokestatic org.springframework.util.StringUtils.commaDelimitedListToStringArray:(Ljava/lang/String;)[Ljava/lang/String;
astore 2
start local 2 1: aload 2
arraylength
iconst_1
if_icmpne 3
2: aload 0
invokevirtual org.springframework.boot.env.RandomValuePropertySource.getSource:()Ljava/lang/Object;
checkcast java.util.Random
invokevirtual java.util.Random.nextLong:()J
aload 2
iconst_0
aaload
invokestatic java.lang.Long.parseLong:(Ljava/lang/String;)J
lrem
invokestatic java.lang.Math.abs:(J)J
lreturn
3: StackMap locals: java.lang.String[]
StackMap stack:
aload 2
iconst_0
aaload
invokestatic java.lang.Long.parseLong:(Ljava/lang/String;)J
lstore 3
start local 3 4: aload 2
iconst_1
aaload
invokestatic java.lang.Long.parseLong:(Ljava/lang/String;)J
lload 3
lsub
lstore 5
start local 5 5: lload 3
aload 0
invokevirtual org.springframework.boot.env.RandomValuePropertySource.getSource:()Ljava/lang/Object;
checkcast java.util.Random
invokevirtual java.util.Random.nextLong:()J
lload 5
lrem
invokestatic java.lang.Math.abs:(J)J
ladd
lreturn
end local 5 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/springframework/boot/env/RandomValuePropertySource;
0 6 1 range Ljava/lang/String;
1 6 2 tokens [Ljava/lang/String;
4 6 3 lowerBound J
5 6 5 upperBound J
MethodParameters:
Name Flags
range
private java.lang.Object getRandomBytes();
descriptor: ()Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=1
start local 0 0: bipush 32
newarray 8
astore 1
start local 1 1: aload 0
invokevirtual org.springframework.boot.env.RandomValuePropertySource.getSource:()Ljava/lang/Object;
checkcast java.util.Random
aload 1
invokevirtual java.util.Random.nextBytes:([B)V
2: aload 1
invokestatic org.springframework.util.DigestUtils.md5DigestAsHex:([B)Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/boot/env/RandomValuePropertySource;
1 3 1 bytes [B
public static void addToEnvironment(org.springframework.core.env.ConfigurableEnvironment);
descriptor: (Lorg/springframework/core/env/ConfigurableEnvironment;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic org.springframework.boot.env.RandomValuePropertySource.logger:Lorg/apache/commons/logging/Log;
invokestatic org.springframework.boot.env.RandomValuePropertySource.addToEnvironment:(Lorg/springframework/core/env/ConfigurableEnvironment;Lorg/apache/commons/logging/Log;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 environment Lorg/springframework/core/env/ConfigurableEnvironment;
MethodParameters:
Name Flags
environment
static void addToEnvironment(org.springframework.core.env.ConfigurableEnvironment, org.apache.commons.logging.Log);
descriptor: (Lorg/springframework/core/env/ConfigurableEnvironment;Lorg/apache/commons/logging/Log;)V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: aload 0
invokeinterface org.springframework.core.env.ConfigurableEnvironment.getPropertySources:()Lorg/springframework/core/env/MutablePropertySources;
astore 2
start local 2 1: aload 2
ldc "random"
invokevirtual org.springframework.core.env.MutablePropertySources.get:(Ljava/lang/String;)Lorg/springframework/core/env/PropertySource;
astore 3
start local 3 2: aload 3
ifnull 5
3: aload 1
ldc "RandomValuePropertySource already present"
invokeinterface org.apache.commons.logging.Log.trace:(Ljava/lang/Object;)V
4: return
5: StackMap locals: org.springframework.core.env.MutablePropertySources org.springframework.core.env.PropertySource
StackMap stack:
new org.springframework.boot.env.RandomValuePropertySource
dup
ldc "random"
invokespecial org.springframework.boot.env.RandomValuePropertySource.<init>:(Ljava/lang/String;)V
astore 4
start local 4 6: aload 2
ldc "systemEnvironment"
invokevirtual org.springframework.core.env.MutablePropertySources.get:(Ljava/lang/String;)Lorg/springframework/core/env/PropertySource;
ifnull 9
7: aload 2
ldc "systemEnvironment"
aload 4
invokevirtual org.springframework.core.env.MutablePropertySources.addAfter:(Ljava/lang/String;Lorg/springframework/core/env/PropertySource;)V
8: goto 10
9: StackMap locals: org.springframework.boot.env.RandomValuePropertySource
StackMap stack:
aload 2
aload 4
invokevirtual org.springframework.core.env.MutablePropertySources.addLast:(Lorg/springframework/core/env/PropertySource;)V
10: StackMap locals:
StackMap stack:
aload 1
ldc "RandomValuePropertySource add to Environment"
invokeinterface org.apache.commons.logging.Log.trace:(Ljava/lang/Object;)V
11: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 environment Lorg/springframework/core/env/ConfigurableEnvironment;
0 12 1 logger Lorg/apache/commons/logging/Log;
1 12 2 sources Lorg/springframework/core/env/MutablePropertySources;
2 12 3 existing Lorg/springframework/core/env/PropertySource<*>;
6 12 4 randomSource Lorg/springframework/boot/env/RandomValuePropertySource;
MethodParameters:
Name Flags
environment
logger
}
Signature: Lorg/springframework/core/env/PropertySource<Ljava/util/Random;>;
SourceFile: "RandomValuePropertySource.java"