In Struts2 interceptor package, we can see many XXXAware interface, like ApplicationAware, CookieAware, and so on.
In Spring framework, ApplicationCont开发者_开发技巧extAware and BeanFactoryAware... can be seen as well.
I also follow this design concept to implement my framework. Is this a kind of design pattern? Does it have a name?
The design pattern is still Dependency Injection and IOC. The marker interfaces are just a clunky language-version specific way of implementing it.
It sounds like maybe it's using the Observer pattern.
加载中,请稍侯......
精彩评论