Marker interface pattern

The marker interface pattern is a design pattern in computer science, used with languages that provide run-time type information about objects. It provides a means to associate metadata with a class where the language does not have explicit support for such metadata.

Comment
enThe marker interface pattern is a design pattern in computer science, used with languages that provide run-time type information about objects. It provides a means to associate metadata with a class where the language does not have explicit support for such metadata.
Has abstract
enThe marker interface pattern is a design pattern in computer science, used with languages that provide run-time type information about objects. It provides a means to associate metadata with a class where the language does not have explicit support for such metadata. To use this pattern, a class implements a marker interface (also called tagging interface) which is an empty interface, and methods that interact with instances of that class test for the existence of the interface. Whereas a typical interface specifies functionality (in the form of method declarations) that an implementing class must support, a marker interface need not do so. The mere presence of such an interface indicates specific behavior on the part of the implementing class. Hybrid interfaces, which both act as markers and specify required methods, are possible but may prove confusing if improperly used.
Hypernym
Pattern
Is primary topic of
Marker interface pattern
Label
enMarker interface pattern
Link from a Wikipage to another Wikipage
.NET Framework
Category:Java (programming language)
Category:Software design patterns
Class (computer science)
Computer science
Design marker
Design pattern (computer science)
Interface (computer science)
Java (programming language)
Java (software platform)
Java annotation
Joshua Bloch
Metadata
Plone (software)
Python (programming language)
Reflection (computer science)
Transient (computer programming)
Zope
SameAs
Jelölő interfész
m.02dj62
Marker interface pattern
Markierungsschnittstelle
pQrp
Q1900757
Інтерфейс-маркер
Интерфейс-маркер (шаблон проектирования)
マーカーインタフェース
Subject
Category:Java (programming language)
Category:Software design patterns
WasDerivedFrom
Marker interface pattern?oldid=1086339313&ns=0
WikiPageLength
4226
Wikipage page ID
471373
Wikipage revision ID
1086339313
WikiPageUsesTemplate
Template:Design Patterns patterns
Template:Refimprove
Template:Reflist