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?
Object Oriented Programming is itself a design pattern.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With