Marker interface pattern: Difference between revisions

Content deleted Content added
sp; wfy; remove Macintosh comment (applies to file system, not object model); added discussion of Java annotations
m Critique: disambiguate .NET
Line 13:
 
==Critique==
The implementation of this pattern presented above is rather specific to Java. Other object models support rich ways of quickly querying static data. For example, [[.NET Framework|.NET]] supports attributes that can be used to associate any type of data with a class or with its members. As of [[J2SE]] 5.0, Java supports [[reflection (computer science)|reflective]] [[annotation]]s that can be used to associate attributes with classes, interfaces, methods, [[Constructor (computer science)|constructors]], [[Field (computer science)|fields]] and [[Packages in Java|packages]]. Annotation allow a rich and fine-grained association of [[metadata]] to program elements.
 
[[Category:Software design patterns]]