Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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, ApplicationContextAware 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?

like image 483
Matt Avatar asked Jun 29 '11 17:06

Matt


People also ask

Is object oriented programming a design pattern?

Object Oriented Programming is itself a design pattern.


2 Answers

The design pattern is still Dependency Injection and IOC. The marker interfaces are just a clunky language-version specific way of implementing it.

like image 109
Affe Avatar answered Sep 28 '22 14:09

Affe


It sounds like maybe it's using the Observer pattern.

like image 23
Rocky Pulley Avatar answered Sep 28 '22 15:09

Rocky Pulley