Polish "Publish ApplicationContextInitializedEvent on contextPrepared"

Closes gh-14478
This commit is contained in:
Andy Wilkinson
2018-09-17 10:50:28 +01:00
parent b4c6cef526
commit 5e0e941632

View File

@@ -36,7 +36,7 @@ public class ApplicationContextInitializedEvent extends SpringApplicationEvent {
* Create a new {@link ApplicationContextInitializedEvent} instance.
* @param application the current application
* @param args the arguments the application is running with
* @param context the context that was being created (maybe null)
* @param context the context that has been initialized
*/
public ApplicationContextInitializedEvent(SpringApplication application,
String[] args, ConfigurableApplicationContext context) {
@@ -48,7 +48,7 @@ public class ApplicationContextInitializedEvent extends SpringApplicationEvent {
* Return the application context.
* @return the context
*/
public ConfigurableApplicationContext getContext() {
public ConfigurableApplicationContext getApplicationContext() {
return this.context;
}