struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vijay K Hegde" <>
Subject Template Method Design
Date Thu, 18 Sep 2003 09:31:59 GMT

  I have a requirement. Anybody has created an abstract action class that extends Action.
It makes the perform method as final. And creates an abstract method satPerform that has to
implemented by the classes extending thus providing sort of a base class.

The intention behind is to take care of exception handling in the abstract class and rest
in the child classes.

Action ---->  perform()
Abstract Class extends Action----> final perform(), abstract satPerform()
SatAction extends Abstract -----> satPerform().

The pattern is Template Method Design.

If anybody has used such approach, please share the details.

If somebody could shed some light in this topic i would be grateful.

Vijay K. Hegde
Software Engineer
Infosys Technologies Limited, Hyderabad
* (040) 2300 5222 extn 23239

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message