Rename ApplicationPidListener

Rename ApplicationPidListener to ApplicationPidFileWriter (keeping the
old class in a deprecated form)

Fixes gh-1673
This commit is contained in:
Phillip Webb
2014-10-08 21:30:35 -07:00
parent c7455040df
commit 77ccd9a80b
4 changed files with 142 additions and 109 deletions

View File

@@ -856,7 +856,7 @@ if needed.
[[production-ready-process-monitoring]]
== Process monitoring
In Spring Boot Actuator you can find `ApplicationPidListener` which creates file
In Spring Boot Actuator you can find `ApplicationPidFileWriter` which creates file
containing application PID (by default in application directory and file name is
`application.pid`). It's not activated by default, but you can do it in two simple
ways described below.
@@ -870,7 +870,7 @@ In `META-INF/spring.factories` file you have to activate the listener:
[indent=0]
----
org.springframework.context.ApplicationListener=\
org.springframework.boot.actuate.system.ApplicationPidListener
org.springframework.boot.actuate.system.ApplicationPidFileWriter
----
@@ -878,7 +878,7 @@ In `META-INF/spring.factories` file you have to activate the listener:
[[production-ready-process-monitoring-programmatically]]
=== Programmatically
You can also activate this listener by invoking `SpringApplication.addListeners(...)`
method and passing `ApplicationPidListener` object. You can also customize file name
method and passing `ApplicationPidFileWriter` object. You can also customize file name
and path through constructor.