mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-14 18:58:44 +00:00
layout, title, folder, permalink, categories, tags
| layout | title | folder | permalink | categories | tags | ||
|---|---|---|---|---|---|---|---|
| pattern | Marker Interface | marker | /patterns/marker/ | Design |
|
Intent
Using empy interfaces as markers to distinguish special treated objects.
Applicability
Use the Marker Interface pattern when
- you want to identify the special objects from normal objects
- define a type that is implemented by instances of the marked class, marker annotations can not do that
