开发者

Is Something-Aware a design pattern?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜