开发者

Is Something-Aware a design pattern?

开发者 https://www.devze.com 2023-03-16 01:33 出处:网络
In Struts2 interceptor package, we can see many XXXAware interface, like ApplicationAware, CookieAware, and so on.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号