Design Patterns

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

Articles
  

Articles:
  • Design an MVC framework using annotations by Riccardo Govoni   - [Clicks: 102]
    Model-View-Controller (MVC) is a software architecture that separates an application's data model, user interface, and control logic into distinct components so that modifications to one of the components can be made with minimal impact to the others. In this article, you learn how to design a framework that extends MVC and uses annotations to achieve an (almost) complete decoupling between the model and view.
    http://www.javaworld.com/javaworld/jw-10-2005/jw-1003-mvc.html - Oct, 2005
  • An Introduction to Antipatterns in Java Applications by Puneet Sangal   - [Clicks: 77]
    Just as design patterns provide a way to communicate concisely about desired software practices, antipatterns provide the equivalent advantages for communicating undesirable practices -- and here's a set of common antipatterns to get you started.
    http://www.devx.com/Java/Article/29162 - Sep, 2005
  • Java theory and practice: Be a good (event) listener by Brian Goetz   - [Clicks: 78]
    The Observer pattern, most often seen in Swing development, is also very useful for decoupling components in situations other than GUI applications. However, some common pitfalls with registering or invoking listeners exist. In this installment of Java theory and practice, Java therapist Brian Goetz offers some feel-good advice on how to be a good listener -- and how to be nice to your listeners, too.
    http://www-128.ibm.com/developerworks/java/library/j-jtp07265/index.html - Jul, 2005
  • Build and Command Objects -- Using Design Patterns by Vlad Kofman   - [Clicks: 141]
    Learn about the creational Builder pattern and the behavioral Command pattern in Java.
    [Includes source code]
    http://www.developer.com/java/data/article.php/3516486 - Jun, 2005
  • Domain Searching Using Visitors by Paul Mukherjee   - [Clicks: 189]
    Paul Mukherjee introduces a search strategy based on the Visitor design pattern, shows how it works with SQL and Hibernate, and discusses its advantages.
    [Includes source code]
    http://www.onjava.com/pub/a/onjava/2005/06/01/searchvisitor.html - Jun, 2005
  • Decorating Servlet Request Objects by Budi Kurniawan   - [Clicks: 125]
    This article shows how to apply the Decorator pattern to servlet request objects. It begins with an introduction to a problem involving servlet filters and explains the Decorator pattern for the uninitiated. It then discusses how to use the pattern in servlets and lists popular servlet-related projects that use it. Finally, this article concludes with a trimming filter that showcases the use of the Decorator pattern in servlets.
    http://dev2dev.bea.com/pub/a/2005/05/decorators.html - May, 2005
  • Managing DAO Transactions in Java by Keld H. Hansen   - [Clicks: 212]
    The DAO design pattern can be used in Java main applications as well as servlet applications, and it can be implemented using Apache Struts. This article's focuses some of the more advanced situations a developer faces when using DAOs, starting with transactions.
    http://javaboutique.internet.com/tutorials/dao/ - May, 2005
  • Breaking the Last Dependency by Elisabeth Freeman, Eric Freeman   - [Clicks: 42]
    As Head First Design Patterns was about to go to press, Erich Gamma sent us a note suggesting that in the factory pattern chapter we should break the last dependency and show how to write code that does away with concrete classes completely. He was right on--that was the next logical step, but because of size and time constraints, sadly that topic just didn't get into the book. But on java.net, we have no such constraints, so let's tackle this topic now.
    http://today.java.net/pub/a/today/2005/04/14/dependency.html - Apr, 2005
  • Using the Strategy Design Pattern for Sorting POJOs by Olexiy Prokhorenko   - [Clicks: 67]
    This article describes an approach that's flexible and can fulfill almost any need. The Strategy design pattern will help us to make it even more powerful and convenient. All we need is Java 2 Platform, Standard Edition version 1.4.2. This code is that simple!
    [Includes sample code]
    http://today.java.net/pub/a/today/2005/04/07/pojostrategy.html - Apr, 2005
  • Form Your Own Design Pattern Study Group by Elisabeth Freeman, Eric Freeman   - [Clicks: 18]
    The focus of this article, however, is to get people started forming study groups using the Head First Design Patterns book. First, we should talk about the difference between these two books. The Gang of Four (GoF) wrote the classic design patterns book; it's the book that got the design patterns movement rolling, and no engineer's bookshelf is complete without it. The GoF book is part introduction to design patterns and part catalog of patterns. Head First Design Patterns was written to be a learning guide to design patterns. It closely mirrors the patterns in the GoF book, but is focused on helping you understand the patterns and the fundamental ideas behind them rather than providing you with a catalog of the patterns. (That's what the GoF book is for!)
    http://www.onjava.com/pub/a/onjava/2005/04/06/designpatterns.html - Apr, 2005
  • Java Component Development: A Conceptual Framework by Palash Ghosh   - [Clicks: 39]
    The goal of this article is to arrive at a common conceptual framework to develop a Java component step by step, following Java best design practices, and starting from scratch. The expected audience of this article needs to have prior knowledge of Java and UML, and Java/J2EE design patterns. The key areas to be addressed in the this article are: * The basic properties of a component. * How to achieve those basic properties in Java component design, using Java design best practices (design patterns), and arrive at a conceptual basic component development framework, which can be used in any component development.
    http://www.onjava.com/pub/a/onjava/2005/03/23/components.html - Mar, 2005
  • Principles, Patterns, and Practices: The Factory Pattern by Robert C. Martin   - [Clicks: 117]
    There are several design patterns allow us to hide the type of an object even from those who seek to create it. These patterns are known as Factories.
    http://today.java.net/pub/a/today/2005/03/09/factory.html - Mar, 2005
  • Designing a Fully Scalable Application by Amir Shevat   - [Clicks: 65]
    This article provides guidelines for writing your application while taking into account that you may need to scale it up in the future. These rules of thumb will enable your application to start small and scale up as needed. In addition, this article will introduce a new set of utilities provided by MantaRay, an innovative, open source data messaging project based on peer-to-peer, serverless architecture. These utilities allows you to write the same code for your application whether it is running in a single JVM or distributed over several computers/JVMs.
    http://www.onjava.com/pub/a/onjava/2005/02/16/mediators.html - Feb, 2005

[Top]