class org.springframework.boot.context.properties.source.SoftReferenceConfigurationPropertyCache<T> implements org.springframework.boot.context.properties.source.ConfigurationPropertyCaching
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.springframework.boot.context.properties.source.SoftReferenceConfigurationPropertyCache
super_class: java.lang.Object
{
private static final java.time.Duration UNLIMITED;
descriptor: Ljava/time/Duration;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final boolean neverExpire;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private volatile java.time.Duration timeToLive;
descriptor: Ljava/time/Duration;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private volatile java.lang.ref.SoftReference<T> value;
descriptor: Ljava/lang/ref/SoftReference;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
Signature: Ljava/lang/ref/SoftReference<TT;>;
private volatile java.time.Instant lastAccessed;
descriptor: Ljava/time/Instant;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic java.time.Duration.ZERO:Ljava/time/Duration;
putstatic org.springframework.boot.context.properties.source.SoftReferenceConfigurationPropertyCache.UNLIMITED:Ljava/time/Duration;
return
LocalVariableTable:
Start End Slot Name Signature
void <init>(boolean);
descriptor: (Z)V
flags: (0x0000)
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.lang.ref.SoftReference
dup
aconst_null
invokespecial java.lang.ref.SoftReference.<init>:(Ljava/lang/Object;)V
putfield org.springframework.boot.context.properties.source.SoftReferenceConfigurationPropertyCache.value:Ljava/lang/ref/SoftReference;
2: aload 0
aload 0
invokevirtual org.springframework.boot.context.properties.source.SoftReferenceConfigurationPropertyCache.now:()Ljava/time/Instant;
putfield org.springframework.boot.context.properties.source.SoftReferenceConfigurationPropertyCache.lastAccessed:Ljava/time/Instant;
3: aload 0
iload 1
putfield org.springframework.boot.context.properties.source.SoftReferenceConfigurationPropertyCache.neverExpire:Z
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/springframework/boot/context/properties/source/SoftReferenceConfigurationPropertyCache<TT;>;
0 5 1 neverExpire Z
MethodParameters:
Name Flags
neverExpire
public void enable();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic org.springframework.boot.context.properties.source.SoftReferenceConfigurationPropertyCache.UNLIMITED:Ljava/time/Duration;
putfield org.springframework.boot.context.properties.source.SoftReferenceConfigurationPropertyCache.timeToLive:Ljava/time/Duration;
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/boot/context/properties/source/SoftReferenceConfigurationPropertyCache<TT;>;
public void disable();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aconst_null
putfield org.springframework.boot.context.properties.source.SoftReferenceConfigurationPropertyCache.timeToLive:Ljava/time/Duration;
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/boot/context/properties/source/SoftReferenceConfigurationPropertyCache<TT;>;
public void setTimeToLive(java.time.Duration);
descriptor: (Ljava/time/Duration;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
ifnull 1
aload 1
invokevirtual java.time.Duration.isZero:()Z
ifeq 2
StackMap locals:
StackMap stack: org.springframework.boot.context.properties.source.SoftReferenceConfigurationPropertyCache
1: aconst_null
goto 3
StackMap locals:
StackMap stack: org.springframework.boot.context.properties.source.SoftReferenceConfigurationPropertyCache
2: aload 1
StackMap locals: org.springframework.boot.context.properties.source.SoftReferenceConfigurationPropertyCache java.time.Duration
StackMap stack: org.springframework.boot.context.properties.source.SoftReferenceConfigurationPropertyCache java.time.Duration
3: putfield org.springframework.boot.context.properties.source.SoftReferenceConfigurationPropertyCache.timeToLive:Ljava/time/Duration;
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/springframework/boot/context/properties/source/SoftReferenceConfigurationPropertyCache<TT;>;
0 5 1 timeToLive Ljava/time/Duration;
MethodParameters:
Name Flags
timeToLive
public void clear();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aconst_null
putfield org.springframework.boot.context.properties.source.SoftReferenceConfigurationPropertyCache.lastAccessed:Ljava/time/Instant;
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/boot/context/properties/source/SoftReferenceConfigurationPropertyCache<TT;>;
T get(java.util.function.Supplier<T>, java.util.function.UnaryOperator<T>);
descriptor: (Ljava/util/function/Supplier;Ljava/util/function/UnaryOperator;)Ljava/lang/Object;
flags: (0x0000)
Code:
stack=2, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual org.springframework.boot.context.properties.source.SoftReferenceConfigurationPropertyCache.getValue:()Ljava/lang/Object;
astore 3
start local 3 1: aload 3
ifnonnull 5
2: aload 2
aload 1
invokeinterface java.util.function.Supplier.get:()Ljava/lang/Object;
invokeinterface java.util.function.UnaryOperator.apply:(Ljava/lang/Object;)Ljava/lang/Object;
astore 3
3: aload 0
aload 3
invokevirtual org.springframework.boot.context.properties.source.SoftReferenceConfigurationPropertyCache.setValue:(Ljava/lang/Object;)V
4: goto 8
5: StackMap locals: java.lang.Object
StackMap stack:
aload 0
invokevirtual org.springframework.boot.context.properties.source.SoftReferenceConfigurationPropertyCache.hasExpired:()Z
ifeq 8
6: aload 2
aload 3
invokeinterface java.util.function.UnaryOperator.apply:(Ljava/lang/Object;)Ljava/lang/Object;
astore 3
7: aload 0
aload 3
invokevirtual org.springframework.boot.context.properties.source.SoftReferenceConfigurationPropertyCache.setValue:(Ljava/lang/Object;)V
8: StackMap locals:
StackMap stack:
aload 0
getfield org.springframework.boot.context.properties.source.SoftReferenceConfigurationPropertyCache.neverExpire:Z
ifne 10
9: aload 0
aload 0
invokevirtual org.springframework.boot.context.properties.source.SoftReferenceConfigurationPropertyCache.now:()Ljava/time/Instant;
putfield org.springframework.boot.context.properties.source.SoftReferenceConfigurationPropertyCache.lastAccessed:Ljava/time/Instant;
10: StackMap locals:
StackMap stack:
aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/springframework/boot/context/properties/source/SoftReferenceConfigurationPropertyCache<TT;>;
0 11 1 factory Ljava/util/function/Supplier<TT;>;
0 11 2 refreshAction Ljava/util/function/UnaryOperator<TT;>;
1 11 3 value TT;
Signature: (Ljava/util/function/Supplier<TT;>;Ljava/util/function/UnaryOperator<TT;>;)TT;
MethodParameters:
Name Flags
factory
refreshAction
private boolean hasExpired();
descriptor: ()Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=1
start local 0 0: aload 0
getfield org.springframework.boot.context.properties.source.SoftReferenceConfigurationPropertyCache.neverExpire:Z
ifeq 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 0
getfield org.springframework.boot.context.properties.source.SoftReferenceConfigurationPropertyCache.timeToLive:Ljava/time/Duration;
astore 1
start local 1 3: aload 0
getfield org.springframework.boot.context.properties.source.SoftReferenceConfigurationPropertyCache.lastAccessed:Ljava/time/Instant;
astore 2
start local 2 4: aload 1
ifnull 5
aload 2
ifnonnull 6
5: StackMap locals: java.time.Duration java.time.Instant
StackMap stack:
iconst_1
ireturn
6: StackMap locals:
StackMap stack:
getstatic org.springframework.boot.context.properties.source.SoftReferenceConfigurationPropertyCache.UNLIMITED:Ljava/time/Duration;
aload 1
invokevirtual java.time.Duration.equals:(Ljava/lang/Object;)Z
ifne 7
aload 0
invokevirtual org.springframework.boot.context.properties.source.SoftReferenceConfigurationPropertyCache.now:()Ljava/time/Instant;
aload 2
aload 1
invokevirtual java.time.Instant.plus:(Ljava/time/temporal/TemporalAmount;)Ljava/time/Instant;
invokevirtual java.time.Instant.isAfter:(Ljava/time/Instant;)Z
ifeq 7
iconst_1
ireturn
StackMap locals:
StackMap stack:
7: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/springframework/boot/context/properties/source/SoftReferenceConfigurationPropertyCache<TT;>;
3 8 1 timeToLive Ljava/time/Duration;
4 8 2 lastAccessed Ljava/time/Instant;
protected java.time.Instant now();
descriptor: ()Ljava/time/Instant;
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: invokestatic java.time.Instant.now:()Ljava/time/Instant;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/boot/context/properties/source/SoftReferenceConfigurationPropertyCache<TT;>;
protected T getValue();
descriptor: ()Ljava/lang/Object;
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.boot.context.properties.source.SoftReferenceConfigurationPropertyCache.value:Ljava/lang/ref/SoftReference;
invokevirtual java.lang.ref.SoftReference.get:()Ljava/lang/Object;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/boot/context/properties/source/SoftReferenceConfigurationPropertyCache<TT;>;
Signature: ()TT;
protected void setValue();
descriptor: (Ljava/lang/Object;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
new java.lang.ref.SoftReference
dup
aload 1
invokespecial java.lang.ref.SoftReference.<init>:(Ljava/lang/Object;)V
putfield org.springframework.boot.context.properties.source.SoftReferenceConfigurationPropertyCache.value:Ljava/lang/ref/SoftReference;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/boot/context/properties/source/SoftReferenceConfigurationPropertyCache<TT;>;
0 2 1 value TT;
Signature: (TT;)V
MethodParameters:
Name Flags
value
}
Signature: <T:Ljava/lang/Object;>Ljava/lang/Object;Lorg/springframework/boot/context/properties/source/ConfigurationPropertyCaching;
SourceFile: "SoftReferenceConfigurationPropertyCache.java"