Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what is tempplate pattern

Answer Posted / srinu

A java method that is capable of calling set of methods in a
sequence to completd task is called template method

EX:-
public void xyz()
{
x();
y();
Z();
}
Best Example for template design pattern for in struts
framework org.apache.struts.action.RequestProcessor
class follow Template Design pattern. In RequestProcessor
class nearly 16 no.or processXXX() methods are their These
methods are exceuting sequence thats way this method is
called Template method.
RequestPrcocessor calls cretes/locates formbean
class object and calls Reset(),validate() methods in
formbean class and calls execute()in Action class.This takes
Application contrlloer for frontcontroller servlet of Action
class

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does nullpointerexception mean?

1085


What is indexof?

987


What is Recursion Function?

1200


Give an example of use of pointers in java class.

1031


How do you override a method?

1016


What are the benefits of operations?

948


Tell me are there implementations for sorting and searching in the java libarary?

1036


Is a boolean variable?

1006


What is an argument java?

973


What are the parts of methodology?

974


What is a variable declaration?

978


When throw keyword is used?

1071


What is the meaning of course?

1100


Can we declare register variable as global?

931


How can we find the sum of two linked lists using stack in java?

1151