aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 12671
    
    5
I suppose you could call it a Decorator pattern. See this wikipedia entry.

Java Resources at www.wbrogden.com
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Banned on SO for this Java design pattern question
 
Similar Threads
Factory method and Strategy pattern
Pro CSS and HTML Design Patterns
Factory Method pattern
Decorator in Java
SCJP for Java 6 book by Sierra and Bates covariant return code example question