Thoughts on Java, programming languages and software development in general. Annotation design patterns Throughout my work with EJBGen, EJB3 and TestNG, I have identified a couple of annotation-related patterns that have proven to be quite powerful. They are called "Annotation inheritance" and "Class-scoped annotations". Annotation Inheritance The idea is simply to extend the familiar inheritance