From 0b96da4b6dfacf4b337f606cfa8fea117215fa53 Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Tue, 10 Oct 2023 23:28:57 +0200 Subject: [PATCH] Revise javadoc for LifecycleProcessor bean etc --- .../support/AbstractApplicationContext.java | 30 ++++++++++++------- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/spring-context/src/main/java/org/springframework/context/support/AbstractApplicationContext.java b/spring-context/src/main/java/org/springframework/context/support/AbstractApplicationContext.java index 4ef8c78b27bf..36b2c76f8387 100644 --- a/spring-context/src/main/java/org/springframework/context/support/AbstractApplicationContext.java +++ b/spring-context/src/main/java/org/springframework/context/support/AbstractApplicationContext.java @@ -136,25 +136,33 @@ public abstract class AbstractApplicationContext extends DefaultResourceLoader implements ConfigurableApplicationContext { /** - * Name of the MessageSource bean in the factory. - * If none is supplied, message resolution is delegated to the parent. - * @see MessageSource - */ - public static final String MESSAGE_SOURCE_BEAN_NAME = "messageSource"; - - /** - * Name of the LifecycleProcessor bean in the factory. - * If none is supplied, a DefaultLifecycleProcessor is used. + * The name of the {@link LifecycleProcessor} bean in the context. + * If none is supplied, a {@link DefaultLifecycleProcessor} is used. + * @since 3.0 * @see org.springframework.context.LifecycleProcessor * @see org.springframework.context.support.DefaultLifecycleProcessor + * @see #start() + * @see #stop() */ public static final String LIFECYCLE_PROCESSOR_BEAN_NAME = "lifecycleProcessor"; /** - * Name of the ApplicationEventMulticaster bean in the factory. - * If none is supplied, a default SimpleApplicationEventMulticaster is used. + * The name of the {@link MessageSource} bean in the context. + * If none is supplied, message resolution is delegated to the parent. + * @see org.springframework.context.MessageSource + * @see org.springframework.context.support.ResourceBundleMessageSource + * @see org.springframework.context.support.ReloadableResourceBundleMessageSource + * @see #getMessage(MessageSourceResolvable, Locale) + */ + public static final String MESSAGE_SOURCE_BEAN_NAME = "messageSource"; + + /** + * The name of the {@link ApplicationEventMulticaster} bean in the context. + * If none is supplied, a {@link SimpleApplicationEventMulticaster} is used. * @see org.springframework.context.event.ApplicationEventMulticaster * @see org.springframework.context.event.SimpleApplicationEventMulticaster + * @see #publishEvent(ApplicationEvent) + * @see #addApplicationListener(ApplicationListener) */ public static final String APPLICATION_EVENT_MULTICASTER_BEAN_NAME = "applicationEventMulticaster";