Skip to main content

Patterns Related Items on

This article provides an in-depth analysis of the famous Gang of Four design pattern - Singleton. Though it is one of the most simple design pattern but it is one of the most complex ones in terms of proper implementation. This article explains various complexities of the implementation and also provides solutions with help of easily understandable code and diagrams. I have tried to explain various details about the impact of using Singleton in multi threading environment, how it behaves inside the Heap. In the end I have provided practical application of the Singleton design pattern and shown how it behaves with other design patterns. Hope my readers will enjoy this article.
A pattern to simplify the development of online reports, and yet improve their run-time performance.
Axiom XMLHttpRequest Project on Axiom XMLHttpRequest is an Enterprise XML Web Framework enables XML Transformations in Java Server using Streaming API for XML (StAX) & Axis2 Databinding Framework(ADB). The Framework extends the client-side JavaScript DOM XMLHttpRequest with XMLHttpRequestSchema and high performance StAX XML Processing on server-side. Parsing XMLHttpRequest to org.apache.axis2.databinding.ADBBean and serialize org.apache.axis2.databinding.ADBBean to HttpServletResponse in ServletContainer while JavaScript Request processing is implemented. Based on supported SchemaCompiler Tool we generate ADBBean from XMLHttpRequestSchema. A Demo Web Application is included in the Framework - explains how to progress JavaScript-XMLHttpRequest in Java Server Page. The Axiom XMLHttpRequest Enterprise XML Web Framework can be easily deployed over axiom-xmlhttprequest.jar registration in Web-Inf/lib directory of the Web Application. The Axiom XMLHttpRequest runs on all Java Web Containers without any modification and requires additional libraries from Apache ADB Project axiom_libs.
A new vision on the Builder pattern in order to really improve the user experience during the creation of Objects.
The article on Singleton Design provides an analytical study from the various perspectives. In this article you will find the various approaches to create a singleton design and you will both the vulnerability and the robustness of the various approaches. This article provides you the best approach to follow.
This article provides an effective outline about the Factory Design Pattern. There are many ways to create a Factory Method Pattern, but I have explained here the better approach to create Factory Design which is adopted as the best practice in the industry.
This blog explains when, where and how to implement a decorator pattern.
This blog explains when, where and how to implement a decorator pattern.
Article consist of extending JAVA's printStackTrace() which prints out much more details of the execution. In case of an Exception a much more detailed stack trace is printed out, from which the complete execution graph can be rebuilt. Sample code was implemented using Java instrumentation API and Java Assist API so that this functionality can be added to any Java Program at class load time without having to physically modify the sources, and by only setting a flag in the JAVA startup command.
State design pattern which is a behavioral pattern allows an object to alter its behavior when its internal state changes, the behavior of object changes due to updates on its state. The implemented graphical drawing program is a good place to use this pattern.
When we search for design pattern articles, we found essentially documentation concerning "Gang of Four" patterns, they are very useful and contribute to well design application. But when I discovered <a href="">GRASP principles</a> , I advice any one interested to improve his skills design to look at these principles, it gives a design fondamental rules. In this article we will discover some GRASP principles used by Spring, and the advantages of using them.