Closes gh-4087
This commit is contained in:
izeye 2015-10-03 13:34:47 +09:00 committed by Stephane Nicoll
parent 4ffcd3a22c
commit a13b23e7f8
4 changed files with 7 additions and 6 deletions

View File

@ -116,9 +116,10 @@ public class ApplicationPidFileWriter implements
/** /**
* Sets the type of application event that will trigger writing of the PID file. * Sets the type of application event that will trigger writing of the PID file.
* Defaults to {@link ApplicationPreparedEvent}. NOTE: If you use the * Defaults to {@link ApplicationPreparedEvent}. NOTE: If you use the
* {@link ApplicationPreparedEvent} to trigger the write, you will not be able to * {@link org.springframework.boot.context.event.ApplicationStartedEvent}
* to trigger the write, you will not be able to
* specify the PID filename in the Spring {@link Environment}. * specify the PID filename in the Spring {@link Environment}.
* @param triggerEventType the event trigger type * @param triggerEventType the trigger event type
*/ */
public void setTriggerEventType( public void setTriggerEventType(
Class<? extends SpringApplicationEvent> triggerEventType) { Class<? extends SpringApplicationEvent> triggerEventType) {
@ -189,7 +190,7 @@ public class ApplicationPidFileWriter implements
/** /**
* Provides access to a property value. * Provides access to a property value.
*/ */
private interface Property { private static interface Property {
String getValue(SpringApplicationEvent event); String getValue(SpringApplicationEvent event);

View File

@ -34,7 +34,7 @@ public class ApplicationEnvironmentPreparedEvent extends SpringApplicationEvent
/** /**
* Create a new {@link ApplicationEnvironmentPreparedEvent} instance. * Create a new {@link ApplicationEnvironmentPreparedEvent} instance.
* @param application the current application * @param application the current application
* @param args the argumemts the application is running with * @param args the arguments the application is running with
* @param environment the environment that was just created * @param environment the environment that was just created
*/ */
public ApplicationEnvironmentPreparedEvent(SpringApplication application, public ApplicationEnvironmentPreparedEvent(SpringApplication application,

View File

@ -36,7 +36,7 @@ public class ApplicationPreparedEvent extends SpringApplicationEvent {
/** /**
* Create a new {@link ApplicationPreparedEvent} instance. * Create a new {@link ApplicationPreparedEvent} instance.
* @param application the current application * @param application the current application
* @param args the argumemts the application is running with * @param args the arguments the application is running with
* @param context the ApplicationContext about to be refreshed * @param context the ApplicationContext about to be refreshed
*/ */
public ApplicationPreparedEvent(SpringApplication application, String[] args, public ApplicationPreparedEvent(SpringApplication application, String[] args,

View File

@ -38,7 +38,7 @@ public class ApplicationReadyEvent extends SpringApplicationEvent {
* Create a new {@link ApplicationReadyEvent} instance. * Create a new {@link ApplicationReadyEvent} instance.
* @param application the current application * @param application the current application
* @param args the arguments the application is running with * @param args the arguments the application is running with
* @param context the context that was being created (maybe null) * @param context the context that was being created
*/ */
public ApplicationReadyEvent(SpringApplication application, String[] args, public ApplicationReadyEvent(SpringApplication application, String[] args,
ConfigurableApplicationContext context) { ConfigurableApplicationContext context) {