public class org.springframework.boot.context.ApplicationPidFileWriter implements org.springframework.context.ApplicationListener<org.springframework.boot.context.event.SpringApplicationEvent>, org.springframework.core.Ordered
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.springframework.boot.context.ApplicationPidFileWriter
super_class: java.lang.Object
{
private static final org.apache.commons.logging.Log logger;
descriptor: Lorg/apache/commons/logging/Log;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.String DEFAULT_FILE_NAME;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "application.pid"
private static final java.util.List<org.springframework.boot.context.ApplicationPidFileWriter$Property> FILE_PROPERTIES;
descriptor: Ljava/util/List;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/List<Lorg/springframework/boot/context/ApplicationPidFileWriter$Property;>;
private static final java.util.List<org.springframework.boot.context.ApplicationPidFileWriter$Property> FAIL_ON_WRITE_ERROR_PROPERTIES;
descriptor: Ljava/util/List;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/List<Lorg/springframework/boot/context/ApplicationPidFileWriter$Property;>;
private static final java.util.concurrent.atomic.AtomicBoolean created;
descriptor: Ljava/util/concurrent/atomic/AtomicBoolean;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private int order;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private final java.io.File file;
descriptor: Ljava/io/File;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private java.lang.Class<? extends org.springframework.boot.context.event.SpringApplicationEvent> triggerEventType;
descriptor: Ljava/lang/Class;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/lang/Class<+Lorg/springframework/boot/context/event/SpringApplicationEvent;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=1, args_size=0
0: ldc Lorg/springframework/boot/context/ApplicationPidFileWriter;
invokestatic org.apache.commons.logging.LogFactory.getLog:(Ljava/lang/Class;)Lorg/apache/commons/logging/Log;
putstatic org.springframework.boot.context.ApplicationPidFileWriter.logger:Lorg/apache/commons/logging/Log;
1: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 0
start local 0 2: aload 0
new org.springframework.boot.context.ApplicationPidFileWriter$SpringProperty
dup
ldc "spring.pid."
ldc "file"
invokespecial org.springframework.boot.context.ApplicationPidFileWriter$SpringProperty.<init>:(Ljava/lang/String;Ljava/lang/String;)V
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
3: aload 0
new org.springframework.boot.context.ApplicationPidFileWriter$SpringProperty
dup
ldc "spring."
ldc "pidfile"
invokespecial org.springframework.boot.context.ApplicationPidFileWriter$SpringProperty.<init>:(Ljava/lang/String;Ljava/lang/String;)V
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
4: aload 0
new org.springframework.boot.context.ApplicationPidFileWriter$SystemProperty
dup
ldc "PIDFILE"
invokespecial org.springframework.boot.context.ApplicationPidFileWriter$SystemProperty.<init>:(Ljava/lang/String;)V
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
5: aload 0
invokestatic java.util.Collections.unmodifiableList:(Ljava/util/List;)Ljava/util/List;
putstatic org.springframework.boot.context.ApplicationPidFileWriter.FILE_PROPERTIES:Ljava/util/List;
end local 0 6: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 0
start local 0 7: aload 0
new org.springframework.boot.context.ApplicationPidFileWriter$SpringProperty
dup
ldc "spring.pid."
ldc "fail-on-write-error"
invokespecial org.springframework.boot.context.ApplicationPidFileWriter$SpringProperty.<init>:(Ljava/lang/String;Ljava/lang/String;)V
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
8: aload 0
new org.springframework.boot.context.ApplicationPidFileWriter$SystemProperty
dup
ldc "PID_FAIL_ON_WRITE_ERROR"
invokespecial org.springframework.boot.context.ApplicationPidFileWriter$SystemProperty.<init>:(Ljava/lang/String;)V
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
9: aload 0
invokestatic java.util.Collections.unmodifiableList:(Ljava/util/List;)Ljava/util/List;
putstatic org.springframework.boot.context.ApplicationPidFileWriter.FAIL_ON_WRITE_ERROR_PROPERTIES:Ljava/util/List;
end local 0 10: new java.util.concurrent.atomic.AtomicBoolean
dup
invokespecial java.util.concurrent.atomic.AtomicBoolean.<init>:()V
putstatic org.springframework.boot.context.ApplicationPidFileWriter.created:Ljava/util/concurrent/atomic/AtomicBoolean;
return
LocalVariableTable:
Start End Slot Name Signature
2 6 0 properties Ljava/util/List<Lorg/springframework/boot/context/ApplicationPidFileWriter$Property;>;
7 10 0 properties Ljava/util/List<Lorg/springframework/boot/context/ApplicationPidFileWriter$Property;>;
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
new java.io.File
dup
ldc "application.pid"
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
invokespecial org.springframework.boot.context.ApplicationPidFileWriter.<init>:(Ljava/io/File;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/boot/context/ApplicationPidFileWriter;
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
new java.io.File
dup
aload 1
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
invokespecial org.springframework.boot.context.ApplicationPidFileWriter.<init>:(Ljava/io/File;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/boot/context/ApplicationPidFileWriter;
0 2 1 filename Ljava/lang/String;
MethodParameters:
Name Flags
filename
public void <init>(java.io.File);
descriptor: (Ljava/io/File;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
ldc -2147483635
putfield org.springframework.boot.context.ApplicationPidFileWriter.order:I
2: aload 0
ldc Lorg/springframework/boot/context/event/ApplicationPreparedEvent;
putfield org.springframework.boot.context.ApplicationPidFileWriter.triggerEventType:Ljava/lang/Class;
3: aload 1
ldc "File must not be null"
invokestatic org.springframework.util.Assert.notNull:(Ljava/lang/Object;Ljava/lang/String;)V
4: aload 0
aload 1
putfield org.springframework.boot.context.ApplicationPidFileWriter.file:Ljava/io/File;
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/springframework/boot/context/ApplicationPidFileWriter;
0 6 1 file Ljava/io/File;
MethodParameters:
Name Flags
file
public void setTriggerEventType(java.lang.Class<? extends org.springframework.boot.context.event.SpringApplicationEvent>);
descriptor: (Ljava/lang/Class;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ldc "Trigger event type must not be null"
invokestatic org.springframework.util.Assert.notNull:(Ljava/lang/Object;Ljava/lang/String;)V
1: aload 0
aload 1
putfield org.springframework.boot.context.ApplicationPidFileWriter.triggerEventType:Ljava/lang/Class;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/boot/context/ApplicationPidFileWriter;
0 3 1 triggerEventType Ljava/lang/Class<+Lorg/springframework/boot/context/event/SpringApplicationEvent;>;
Signature: (Ljava/lang/Class<+Lorg/springframework/boot/context/event/SpringApplicationEvent;>;)V
MethodParameters:
Name Flags
triggerEventType
public void onApplicationEvent(org.springframework.boot.context.event.SpringApplicationEvent);
descriptor: (Lorg/springframework/boot/context/event/SpringApplicationEvent;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield org.springframework.boot.context.ApplicationPidFileWriter.triggerEventType:Ljava/lang/Class;
aload 1
invokevirtual java.lang.Class.isInstance:(Ljava/lang/Object;)Z
ifeq 8
getstatic org.springframework.boot.context.ApplicationPidFileWriter.created:Ljava/util/concurrent/atomic/AtomicBoolean;
iconst_0
iconst_1
invokevirtual java.util.concurrent.atomic.AtomicBoolean.compareAndSet:(ZZ)Z
ifeq 8
1: aload 0
aload 1
invokevirtual org.springframework.boot.context.ApplicationPidFileWriter.writePidFile:(Lorg/springframework/boot/context/event/SpringApplicationEvent;)V
2: goto 8
3: StackMap locals:
StackMap stack: java.lang.Exception
astore 2
start local 2 4: ldc "Cannot create pid file %s"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
getfield org.springframework.boot.context.ApplicationPidFileWriter.file:Ljava/io/File;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
astore 3
start local 3 5: aload 0
aload 1
invokevirtual org.springframework.boot.context.ApplicationPidFileWriter.failOnWriteError:(Lorg/springframework/boot/context/event/SpringApplicationEvent;)Z
ifeq 7
6: new java.lang.IllegalStateException
dup
aload 3
aload 2
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
7: StackMap locals: java.lang.Exception java.lang.String
StackMap stack:
getstatic org.springframework.boot.context.ApplicationPidFileWriter.logger:Lorg/apache/commons/logging/Log;
aload 3
aload 2
invokeinterface org.apache.commons.logging.Log.warn:(Ljava/lang/Object;Ljava/lang/Throwable;)V
end local 3 end local 2 8: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/springframework/boot/context/ApplicationPidFileWriter;
0 9 1 event Lorg/springframework/boot/context/event/SpringApplicationEvent;
4 8 2 ex Ljava/lang/Exception;
5 8 3 message Ljava/lang/String;
Exception table:
from to target type
1 2 3 Class java.lang.Exception
MethodParameters:
Name Flags
event
private void writePidFile(org.springframework.boot.context.event.SpringApplicationEvent);
descriptor: (Lorg/springframework/boot/context/event/SpringApplicationEvent;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield org.springframework.boot.context.ApplicationPidFileWriter.file:Ljava/io/File;
astore 2
start local 2 1: aload 0
aload 1
getstatic org.springframework.boot.context.ApplicationPidFileWriter.FILE_PROPERTIES:Ljava/util/List;
invokevirtual org.springframework.boot.context.ApplicationPidFileWriter.getProperty:(Lorg/springframework/boot/context/event/SpringApplicationEvent;Ljava/util/List;)Ljava/lang/String;
astore 3
start local 3 2: aload 3
ifnull 4
3: new java.io.File
dup
aload 3
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
astore 2
4: StackMap locals: java.io.File java.lang.String
StackMap stack:
new org.springframework.boot.system.ApplicationPid
dup
invokespecial org.springframework.boot.system.ApplicationPid.<init>:()V
aload 2
invokevirtual org.springframework.boot.system.ApplicationPid.write:(Ljava/io/File;)V
5: aload 2
invokevirtual java.io.File.deleteOnExit:()V
6: return
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/context/ApplicationPidFileWriter;
0 7 1 event Lorg/springframework/boot/context/event/SpringApplicationEvent;
1 7 2 pidFile Ljava/io/File;
2 7 3 override Ljava/lang/String;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
event
private boolean failOnWriteError(org.springframework.boot.context.event.SpringApplicationEvent);
descriptor: (Lorg/springframework/boot/context/event/SpringApplicationEvent;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
getstatic org.springframework.boot.context.ApplicationPidFileWriter.FAIL_ON_WRITE_ERROR_PROPERTIES:Ljava/util/List;
invokevirtual org.springframework.boot.context.ApplicationPidFileWriter.getProperty:(Lorg/springframework/boot/context/event/SpringApplicationEvent;Ljava/util/List;)Ljava/lang/String;
astore 2
start local 2 1: aload 2
invokestatic java.lang.Boolean.parseBoolean:(Ljava/lang/String;)Z
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/boot/context/ApplicationPidFileWriter;
0 2 1 event Lorg/springframework/boot/context/event/SpringApplicationEvent;
1 2 2 value Ljava/lang/String;
MethodParameters:
Name Flags
event
private java.lang.String getProperty(org.springframework.boot.context.event.SpringApplicationEvent, java.util.List<org.springframework.boot.context.ApplicationPidFileWriter$Property>);
descriptor: (Lorg/springframework/boot/context/event/SpringApplicationEvent;Ljava/util/List;)Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 4
goto 5
StackMap locals: org.springframework.boot.context.ApplicationPidFileWriter org.springframework.boot.context.event.SpringApplicationEvent java.util.List top java.util.Iterator
StackMap stack:
1: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.springframework.boot.context.ApplicationPidFileWriter$Property
astore 3
start local 3 2: aload 3
aload 1
invokeinterface org.springframework.boot.context.ApplicationPidFileWriter$Property.getValue:(Lorg/springframework/boot/context/event/SpringApplicationEvent;)Ljava/lang/String;
astore 5
start local 5 3: aload 5
ifnull 5
4: aload 5
areturn
end local 5 end local 3 5: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
6: aconst_null
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/springframework/boot/context/ApplicationPidFileWriter;
0 7 1 event Lorg/springframework/boot/context/event/SpringApplicationEvent;
0 7 2 candidates Ljava/util/List<Lorg/springframework/boot/context/ApplicationPidFileWriter$Property;>;
2 5 3 candidate Lorg/springframework/boot/context/ApplicationPidFileWriter$Property;
3 5 5 value Ljava/lang/String;
Signature: (Lorg/springframework/boot/context/event/SpringApplicationEvent;Ljava/util/List<Lorg/springframework/boot/context/ApplicationPidFileWriter$Property;>;)Ljava/lang/String;
MethodParameters:
Name Flags
event
candidates
public void setOrder(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield org.springframework.boot.context.ApplicationPidFileWriter.order:I
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/boot/context/ApplicationPidFileWriter;
0 2 1 order I
MethodParameters:
Name Flags
order
public int getOrder();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.boot.context.ApplicationPidFileWriter.order:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/boot/context/ApplicationPidFileWriter;
protected static void reset();
descriptor: ()V
flags: (0x000c) ACC_PROTECTED, ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: getstatic org.springframework.boot.context.ApplicationPidFileWriter.created:Ljava/util/concurrent/atomic/AtomicBoolean;
iconst_0
invokevirtual java.util.concurrent.atomic.AtomicBoolean.set:(Z)V
1: return
LocalVariableTable:
Start End Slot Name Signature
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.context.event.SpringApplicationEvent
invokevirtual org.springframework.boot.context.ApplicationPidFileWriter.onApplicationEvent:(Lorg/springframework/boot/context/event/SpringApplicationEvent;)V
return
LocalVariableTable:
Start End Slot Name Signature
}
Signature: Ljava/lang/Object;Lorg/springframework/context/ApplicationListener<Lorg/springframework/boot/context/event/SpringApplicationEvent;>;Lorg/springframework/core/Ordered;
SourceFile: "ApplicationPidFileWriter.java"
NestMembers:
org.springframework.boot.context.ApplicationPidFileWriter$Property org.springframework.boot.context.ApplicationPidFileWriter$SpringProperty org.springframework.boot.context.ApplicationPidFileWriter$SystemProperty
InnerClasses:
private abstract Property = org.springframework.boot.context.ApplicationPidFileWriter$Property of org.springframework.boot.context.ApplicationPidFileWriter
private SpringProperty = org.springframework.boot.context.ApplicationPidFileWriter$SpringProperty of org.springframework.boot.context.ApplicationPidFileWriter
private SystemProperty = org.springframework.boot.context.ApplicationPidFileWriter$SystemProperty of org.springframework.boot.context.ApplicationPidFileWriter