This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Java in General and the fly likes Banned on SO for this Java design pattern question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Banned on SO for this Java design pattern question" Watch "Banned on SO for this Java design pattern question" New topic
Author

Banned on SO for this Java design pattern question

David W Brown
Greenhorn

Joined: Feb 13, 2008
Posts: 12
Howdy, recently I have had the opportunity to see a very unusual Java design pattern in action (if it is indeed a design pattern).

Attempts to Google this come up short.

The pattern in question is: an Abstract class that extends a Concrete class and implements Runnable.

The concrete class implements a couple of additional Interfaces.

The code I'm referencing is in a Java web app that is current production code and is running!

My question is twofold:

Is there a name or type of so-called Java design pattern that can be attached to the description above.

If this is a know design pattern what are the overwhelming reasons to use such a pattern or what are the advantages/disadvantages to using the pattern described above.


Yet some, not wise, go to the other side of the globe, to barbarous and unhealthy regions, and devote ten or twenty years, in that they may live,-that is, keep comfortably warm,- and die in New England at last. Henry David Thoreau - Walden - 1845
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12769
    
    5
I suppose you could call it a Decorator pattern. See this wikipedia entry.
 
wood burning stoves
 
subject: Banned on SO for this Java design pattern question