I've seen discussions about the Marker Interface as an antipattern - specifically, as it relates to Cloneable and Serializable. But I've implemented the pattern a number of times (never as a constants interface) and don't really understand the arguments against it. I wonder if any fellow trusty Ranchers can impart some wisdom..?
As an aside, Spring provides the ApplicationContextAware marker and I'm contemplating using it or not...
Originally posted by Mr. C Lamont Gilbert: Those are not marker interfaces. Those interfaces give access to underlying language facilities. Therefore, they are not an example of an anti-pattern.
Are you referring to Cloneable and Serializable?
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus