spring中ApplicationContextAware接口描述

項目中使用了大量的工廠類,採用了簡單工廠模式: 通過該工廠類可以獲取指定的處理器bean,這些處理器bean我們是從spring容器中獲取的,如何獲取,是通過實現ApplicationContextAware接口完成的。 @Component("handlerFactory") public class HandlerFactory implements InitializingBean, App
相關文章
相關標籤/搜索