Skip to content

Commit

Permalink
改用dom4j解析xml文件
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekYRC committed Dec 2, 2020
1 parent 6ccee06 commit 69e1299
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,8 @@ Aware是感知、意识的意思,Aware接口是标记性接口,其实现子

实现ApplicationContextAware的接口感知ApplicationContext,是通过BeanPostProcessor。由bean的生命周期可知,bean实例化后会经过BeanPostProcessor的前置处理和后置处理。定义一个BeanPostProcessor的实现类ApplicationContextAwareProcessor,在AbstractApplicationContext#refresh方法中加入到BeanFactory中,在前置处理中为bean设置所属的ApplicationContext。

改用dom4j解析xml文件。

至止,bean的生命周期如下:

![](./assets/aware-interface.png)
Expand Down

0 comments on commit 69e1299

Please sign in to comment.