JavaEE Spring框架学习笔记(理论学习之Aware接口)
来源:互联网 发布:简单的sql查询语句 编辑:程序博客网 时间:2024/05/11 09:28
Spring提供了一些以Aware结尾的接口,通过实现该接口即可获取相应的IOC资源。
不同的Aware结尾的接口提供相应的资源如下(拷贝于guanwa):
Table 7.4. Aware interfaces
ApplicationContextAware
Declaring ApplicationContext
Section 7.6.2, “ApplicationContextAware and BeanNameAware”
ApplicationEventPublisherAware
Event publisher of the enclosing ApplicationContext
Section 7.15, “Additional Capabilities of the ApplicationContext”
BeanClassLoaderAware
Class loader used to load the bean classes.
Section 7.3.2, “Instantiating beans”
BeanFactoryAware
Declaring BeanFactory
Section 7.6.2, “ApplicationContextAware and BeanNameAware”
BeanNameAware
Name of the declaring bean
Section 7.6.2, “ApplicationContextAware and BeanNameAware”
BootstrapContextAware
Resource adapter BootstrapContext
the container runs in. Typically available only in JCA aware ApplicationContext
s
Chapter 32, JCA CCI
LoadTimeWeaverAware
Defined weaver for processing class definition at load time
Section 11.8.4, “Load-time weaving with AspectJ in the Spring Framework”
MessageSourceAware
Configured strategy for resolving messages (with support for parametrization and internationalization)
Section 7.15, “Additional Capabilities of the ApplicationContext”
NotificationPublisherAware
Spring JMX notification publisher
Section 31.7, “Notifications”
PortletConfigAware
Current PortletConfig
the container runs in. Valid only in a web-aware Spring ApplicationContext
Chapter 25, Portlet MVC Framework
PortletContextAware
Current PortletContext
the container runs in. Valid only in a web-aware Spring ApplicationContext
Chapter 25, Portlet MVC Framework
ResourceLoaderAware
Configured loader for low-level access to resources
Chapter 8, Resources
ServletConfigAware
Current ServletConfig
the container runs in. Valid only in a web-aware Spring ApplicationContext
Chapter 22, Web MVC framework
ServletContextAware
Current ServletContext
the container runs in. Valid only in a web-aware Spring ApplicationContext
Chapter 22, Web MVC framework
- JavaEE Spring框架学习笔记(理论学习之Aware接口)
- JavaEE Spring框架学习笔记一(理论学习之Bean生命周期)
- JavaEE Spring框架学习笔记(理论学习之通过@Bean注解)
- JavaEE Spring框架学习笔记一(理论学习)
- JavaEE Spring框架学习笔记一(理论学习之Bean配置项、作用域)
- JavaEE Spring框架学习笔记(理论学习之Bean的自动装配)
- JavaEE Spring框架学习笔记(理论学习之通过注解的方式定义和管理Bean)
- JavaEE Spring框架学习笔记(理论学习之通过@Autowired 自动装配注解的使用)
- spring之aware接口
- Spring学习笔记(7.Spring Bean装配之Aware接口)
- Spring框架中的各种*Aware接口
- Spring框架中的各种*Aware接口
- 【Spring学习26】Aware相关接口
- Spring入门 Bean装配之Aware接口
- spring-aware接口
- spring-Aware接口
- Spring Bean--Aware接口
- Spring中的Aware接口
- 使用kill命令批量终止进程
- 自适应四元数kalman滤波matlab学习笔记(二)
- Spring框架概述 - Spring学习笔记(一)
- 致雅嵌入式工作室——51蓝牙小车专用控制板(图片)
- 时间量级——从register、L1-L3 Cache 到 restart
- JavaEE Spring框架学习笔记(理论学习之Aware接口)
- JQuery实现瀑布流
- 微软?还是Linux?
- Ubuntu搭建Hadoop2.6.5(伪分布式)
- PAT A1001
- 时间倒流
- bootstrap之模态框
- 子集生成算法
- 解决Cannot change version of project facet Dynamic web module to 2.5