Top Description Methods
org.springframework.context

public Interface MessageSourceAware

extends Aware
Imports
org.springframework.beans.factory.Aware

Interface to be implemented by any object that wishes to be notified of the MessageSource (typically the ApplicationContext) that it runs in.

Note that the MessageSource can usually also be passed in as a bean reference (via arbitrary bean properties or constructor arguments), because it is defined as a bean with name "messageSource" in the application context.

Authors
Juergen Hoeller, Chris Beams
Since
1.1.1
See Also
ApplicationContextAware

Method Summary

Modifier and TypeMethod and Description
public void
setMessageSource(MessageSource
message source to be used by this object
messageSource
)

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.

Method Detail

setMessageSourceback to summary
public void setMessageSource(MessageSource messageSource)

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:MessageSource

message source to be used by this object