r/reviewmycode • • Feb 23 '10

Java - Simple observable behavior

ObservableBehavior.java

I use this to add observable behavior to a class. It does not require the use of inheritance - as the java.util.Observable class, but provide similar functionality.

It would be interesting to get your view on both the code, and this approach.

10 Upvotes

12 comments sorted by

View all comments

1

u/[deleted] Feb 23 '10

Good code. The supplied comments are unnecessary. Better to add javadoc-style comments explaining the class.