Struts Tutorials:
Struts2 Tag CheckBoxList , Checkbox, Iterator, IF
Struts2 Tag Library Example
Struts2 Tiles Example
Struts2 Tiles I18N Example
Struts2 Questions
Struts Tiles I18N Example
Struts Eclipse MVC
Struts2 Tags
Struts2 Example and Tutorial
Struts MVC
Struts2 Validation
Hibernate Tutorials:
Hibernate Case Study
Class Hierarchy Persist Example
Using Hibernate Interceptor
Hibernate Questions with Answer
Hibernate Many-to-Many Mapping Example
Hibernate one-to-many Mapping Example
Hibernate and ORM tools
Spring Hibernate Example
Hibernate SessionFactory Example
Hibernate Mapping Class Hierarchy
Hibernate Questions
Hibernate SessionFactory Questions
Spring Hibernate Example:
Spring Hibernate Case Study
Written By : ISHTEK
Title :
Java Design Case Study 1
Description :
design context More...
|
Written By : ISHTEK
Title :
Java Design Case Study 2
Description :
Design Context More...
|
| Design-Pattern-Java-Platform - Template - Java-Design-Patterns Example Author : ISHTEK Date (Year/Month/Date): 2009-05-26
Template Design Pattern
Idea behind use of Template design pattern
As per Template design pattern, an abstract method declaration
in the super class provides a hook for adding functionality
at later point of time by sub class implementating this
abstract method. Let us take the example of Apache Struts
Action class implementation (not referring to Struts 2.0
version or higher) execute method is abstract method in Action
class, and all user defined action class extending Struts Action
class and implementing this execute method. Thus providing
extending functionality to Struts framework to use.
We might have seen or used this pattern, many times while using
many framework, but might have not known that this is Template
Design Pattern.
So whenever need for future functionality or extensibility part
of framework is under consideration, Template design pattern is
obvious choice.
These are my own understanding only, If you are interested in adding or
contracting any of these, you are most welcome to do so just by writing
or commenting on this Page. | |