We just got notification that our BoF regarding the jpatterns.org annotations has been accepted for Devoxx 2010 in Belgium, the largest Java developers conference in Europe. At the moment we’ve put Michael Hunger and Heinz Kabutz down as speakers, but please let us know if you are in the area and would also like to […]
Author Archives: admin
Inner Annotation Attributes
jonnybbb made a suggestion that we rather use attributes for the participants and comments. I’ve done this for all of the annotations and inner annotations, so instead of @CompositePattern.Component @PatternParticipants({DistributionList.class, Person.class}) public abstract class Contact { public abstract void sendMail(String msg); public void add(Contact contact) {} public void remove(Contact contact) {} } We can now […]
jpatterns
We have tried different approaches to specifying the patterns. The current favorite is to use inner annotations for specifying the roles. So, instead of our earlier approach: @CompositePattern(role = CompositeRole.COMPONENT, participants = {DistributionList.class, Person.class}) public abstract class Contact { public abstract void sendMail(String msg); public void add(Contact contact) {} public void remove(Contact contact) {} } […]
Welcome to jpatterns.org
Design Patterns are typically encoded into Java code in an ad-hoc fashion. They are either embedded into the names of the classes or written into the Javadocs. Unfortunately it is impossible to accurately determine a pattern based solely on the class structure without knowing the intent of the code author. JPatterns is a collection of […]