spring-framework / org.springframework.context / MessageSourceAware / setMessageSource

setMessageSource

abstract fun setMessageSource(messageSource: MessageSource): Unit

Set the MessageSource that this object runs in.

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.

Parameters

messageSource - message sourceto be used by this object