Welcome!

Java Authors: Liz McMillan, Walter H. Pinson, III, Maureen O'Gara, Yakov Werde, Tony Bishop

Related Topics: Java

Java: Article

Take Two Patterns and Call Me in the Morning

Take Two Patterns and Call Me in the Morning

Life is not easy for today's enterprise application architects. In today's IT world, the architect not only has to design solutions for a plethora of interdependent systems (as is obvious from the job description and title), he or she also has to conform to the ever-evolving standards in a shorter API life cycle, plan for the not-too-distant future, collaborate with business and technical environments, and work on a feasible roadmap for his or her application/application portfolio.

In large organizations, standards for various facets of business and technology are already laid out and managed between several competency centers/centers of excellence, and strict governance is often in place to ensure consistency throughout the organization. To successfully deliver products against hard deadlines, the architects have to make sure that everything complies in the governance process.

With the advances in software engineering, especially in component-based and service-oriented architectures, common guidelines have emerged in the form of design patterns. These design patterns help architects leverage what others have learned in their software design journey. The Java platform is an obvious example of the application of design patterns. Before distributed platforms such as Java came along, the number of folks who could spell "design pattern" was limited to the few who had read the Gang-of-Four book, and that was just a handful of developers in any organization. With Java - Listeners, Proxies, Observers, Factories, Delegates, Facades - all these became a part of the designers' common vocabulary. Reference architectures, frameworks, and plug-and-play followed soon after. Although Java is not solely responsible for this, it has definitely played a big part in the promotion of these concepts. Add UML and RUP to the mix and you not only have the toolkit, but also the ability to document and manage your application's development in a common way.

With all these wonderful tools in the architect's toolkit, why is the job still so complex? Given the tools at hand, an application architect should easily be able to develop applications that leverage:

  • Application frameworks
  • Architecture blueprints
  • Adaptive architectures
  • Reference architectures
  • Prescriptive architectures
These architectures and frameworks have been developed in the software community, as well as within organizations, and they facilitate the design of applications from a common base and building blocks. Apply them to your application and presto - you have a two-minute recipe to create an instant product. Where's the catch?

The basic problem is that the guidelines and patterns, though invaluable, are created outside the application domain. Although they do address the needs of applications, that need is addressed across a number of applications. After all, it's the only way that reuse can be promoted. In this editorial we are focusing on the application architect. The architects in competency centers and standards groups focus on promoting reuse. The focus of the application architect is on leveraging reusable components and leveraging documented patterns to solve a business problem. However, unless a clear path is laid out for navigating through the available choices, he or she may easily choose to develop alternatives in order to meet the demands of the application.

This impasse between the prescription of reuse and its feasibility in the application's context needs to be carefully addressed. Just as the design principles that apply to a broad range of applications are made available for the applications, a guidebook that navigates through these principles should be developed for the application/application portfolio. This guidebook should focus on application design, treating the application as the center of the universe. Then clear governance practices should be established around exporting the reusable artifacts, learnings, and application patterns that emerge out of each application design cycle. These should then be incorporated into the rationale for selecting design patterns published by groups external to the application. After all, communication is a two-way street. Design patterns are no exception.

More Stories By Ajit Sagar

Ajit Sagar is a principal architect with Infosys Technologies, Ltd., a global consulting and IT services company. Ajit has been working with Java since 1997, and has more than 15 years experience in the IT industry. During this tenure, he's been a programmer, lead architect, director of engineering, and product manager for companies from 15 to 25,000 people in size. Ajit has served as JDJ's J2EE editor, was the founding editor of XML Journal, and has been a frequent speaker at SYS-CON's Web Services Edge series of conferences, JavaOne, and international conference. He has published more than 125 articles.

Comments (0)

Share your thoughts on this story.

Add your comment
You must be signed in to add a comment. Sign-in | Register

In accordance with our Comment Policy, we encourage comments that are on topic, relevant and to-the-point. We will remove comments that include profanity, personal attacks, racial slurs, threats of violence, or other inappropriate material that violates our Terms and Conditions, and will block users who make repeated violations. We ask all readers to expect diversity of opinion and to treat one another with dignity and respect.