Marker interface pattern: Difference between revisions

Content deleted Content added
Jpp (talk | contribs)
added link to german Wikipedia
Line 13:
A better solution is for the language to support [[metadata]] directly:
 
* The [[.NET Framework|.NET framework]] supports attributes that can be used to associate any type of data with a class or with its members. Attributes can be inherited or not, thus solving the problem mentioned above.
* [[Java_(software_platform)|Java]], as of Java 5 (1.5), also provides [[Annotation|annotations]] [[Java_annotation|support]] on classes, member variables, methods, and method parameters that may be accessed from an instance using [[Reflection_(computer_science)|reflection]].
* In [[Python (programming language)|Python]], the use and term "marker interface" is common in [[Zope 3]] and [[Plone (software)|Plone]]. Interfaces are declared as metadata and subclasses can use <code>implementsOnly</code> to declare they do not implement everything from their super classes.