This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread 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 Android Security Essentials Live Lessons this week in the Android 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: 12761
    
    5
I suppose you could call it a Decorator pattern. See this wikipedia entry.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Banned on SO for this Java design pattern question
 
Similar Threads
Decorator in Java
Pro CSS and HTML Design Patterns
Factory Method pattern
Factory method and Strategy pattern
SCJP for Java 6 book by Sierra and Bates covariant return code example question