Spring ResourceLoaderAware回调接口

来源:互联网 发布:淘宝怎么设置支持花呗 编辑:程序博客网 时间:2024/05/21 12:42

出处:http://book.51cto.com/art/201004/193408.htm

ResourceLoaderAware回调接口

ResourceLoaderAware回调接口负责将ResourceLoader对象注入到当前的受管Bean实例中,其定义如下。当受管Bean获得ResourceLoader对象后,它便能够通过它获得各种资源。

  1. public interface ResourceLoaderAware {  
  2.  
  3.     void setResourceLoader(ResourceLoader resourceLoader);  
  4.  

参考:http://book.51cto.com/art/201004/193363.htm

0 0