Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

layout pattern
title Marker Interface
folder marker
permalink /patterns/marker/
categories Design
tags
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