Design Patterns

View: [ 2009 | 2008 | 2007 | 2006 | 2005 | 2004 | 2003 ]

Articles
  

Articles:
  • Control Global Access to Your Java Objects with the Singleton Design Pattern by Barry Burd, Michael P. Redlich   - [Clicks: 21]
    Though the Singleton design pattern's code is quite simple, it does have some potential pitfalls. Learn about the pattern, its pitfalls, and two ways to avoid them in this tutorial.
    http://javaboutique.internet.com/tutorials/single/ - Oct, 2007
  • Working with Design Patterns: Null Object by Jeff Langr   - [Clicks: 40]
    Some of the best patterns weren't documented in the original Design Patterns book. The Null Object is an important pattern that can help keep some sanity in your code base.
    http://www.developer.com/java/other/article.php/3697611 - Sep, 2007
  • Working with Design Patterns: Observer by Jeff Langr   - [Clicks: 25]
    The observer pattern provides a great way of avoiding troublesome two-way dependencies in your applications.
    http://www.developer.com/java/ent/article.php/3694976 - Aug, 2007
  • Design Pattern: Proxy by Jeff Langr   - [Clicks: 50]
    The proxy pattern provides a protection layer for your objects by exposing a stand-in to interested clients. I'll explore one possible use for the proxy pattern in this article.
    http://www.developer.com/lang/article.php/3691986 - Aug, 2007
  • Working with Design Pattern: Decorator by Jeff Langr   - [Clicks: 43]
    The decorator pattern gives you the flexibility to wrap special behavior around objects. Unlike inheritance, which gives you the ability to predefine specialized behavior, using the decorator pattern allows you to dynamically attach specialized behavior.
    http://www.developer.com/tech/article.php/3689436 - Jul, 2007
  • Working with Design Patterns: Composite by Jeff Langr   - [Clicks: 18]
    The composite design pattern allows simplification of code through the use of a recursive class relationship. Learn how the design pattern can be incrementally derived by slowly building upon pieces of the solution.
    http://www.developer.com/tech/article.php/3686731 - Jul, 2007
  • Working with Design Patterns: Strategy by Jeff Langr   - [Clicks: 54]
    The Strategy design pattern allows your classes to switch between various algorithms. Discover how to take advantage of this pattern in order to create a simpler, more maintainable, and more easily unit tested system.
    http://www.developer.com/tech/article.php/3683091 - Jun, 2007
  • Threads Versus The Singleton Pattern by Rob Lybarger   - [Clicks: 27]
    Keeping state in a singleton pattern is nice, but adding threads might lead to unexpected behavior. Explore how this might happen, then see how simply it can be corrected.
    http://www.developer.com/design/article.php/3680701 - May, 2007
  • Writing Design Patterns: Flyweight by Jeff Langr   - [Clicks: 57]
    Take advantage of a design pattern that Java itself heavily depends upon.
    http://www.developer.com/design/article.php/3677501 - May, 2007
  • Writing Design Patterns: Template Method by Jeff Langr   - [Clicks: 49]
    Template Method is a design pattern that presents one solution for eliminating common duplication between two or more related classes. Work through an example and try it out yourself.
    http://www.developer.com/design/article.php/3674561 - Apr, 2007
  • The Java Enclosing Class as an Implementation of the Builder Pattern by Jason DeMorrow   - [Clicks: 27]
    In the traditional Builder Pattern, a Product's encapsulation can be compromised since its compositional logic resides in another class. What if you could determine a Product's composition at run time without breaking encapsulation? In some cases, you can accomplish this with one of Java's more obscure features: nested classes.
    http://www.javaworld.com/javaworld/jw-04-2007/jw-04-nested-classes.html - Apr, 2007
  • Writing Design Patterns: Command by Jeff Langr   - [Clicks: 101]
    It's always possible to slowly refactor toward a better design. The improved version of the code demonstrates the Command Pattern, one of the more useful recognized software design patterns. In this example, your need to test proved to be in alignment with good design concepts!
    http://www.developer.com/tech/article.php/3671676 - Apr, 2007
  • Encapsulating Algorithms with the Template Method Design Pattern by Barry Burd, Michael P. Redlich   - [Clicks: 41]
    Learn how to use the Template design pattern using this mathemetical example.
    http://javaboutique.internet.com/tutorials/template/ - Feb, 2007
  • Transparent State Management Using the Decorator Pattern by Sharfudeen Ashraf   - [Clicks: 53]
    Storing state in the session makes sense at first, but can become a burden to manage properly, and can make more of your application stateful than you originally intended. Sharfudeen Ashraf shows how a servlet filter can be used to provide transparent state management.
    [Includes source code]
    http://today.java.net/pub/a/today/2007/01/04/transparent-state-management-using-decorator-pattern.html - Jan, 2007

[Top]