站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Spring Framework 1.2.9 API 文档英文版

MessageSourceAware (Spring Framework) - Spring Framework 1.2.9 API 文档英文版


org.springframework.context
Interface MessageSourceAware


public interface MessageSourceAware

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 on as bean reference (to arbitrary bean properties or constructor arguments), because it is defined as bean with name "messageSource" in the application context.

Since:
1.1.1
Author:
Juergen Hoeller
See Also:
ApplicationContextAware

Method Summary
 void setMessageSource(MessageSource messageSource)
          Set the MessageSource that this object runs in.
 

Method Detail

setMessageSource

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 - message sourceto be used by this object


Copyright (c) 2002-2007 The Spring Framework Project.