public interface MessageSourceAware extends Aware
Note that the MessageSource can usually also be passed on as bean reference (to arbitrary bean properties or constructor arguments), because it is defined as bean with name "messageSource" in the application context.
|Modifier and Type||Method and Description|
Set the MessageSource that this object runs in.
void setMessageSource(MessageSource messageSource)
Invoked after population of normal bean properties but before an init callback like InitializingBean's afterPropertiesSet or a custom init-method. Invoked before ApplicationContextAware's setApplicationContext.
messageSource- message sourceto be used by this object