2017-05-03 20:34:27 +02:00
..
2017-05-03 17:50:35 +02:00
2017-05-03 17:50:35 +02:00
2017-05-03 20:34:27 +02:00
2017-05-03 19:49:25 +02:00

layout, title, folder, permalink, categories, tags
layout title folder permalink categories tags
pattern Marker Interface marker /patterns/marker/ Design
Java
Difficulty-Beginner

Intent

Using empy interfaces as markers to distinguish special treated objects.

alt text

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

Real world examples

Credits