You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Gareth Andrew <ga...@ntlworld.com> on 2003/04/24 12:30:38 UTC

[OT] Re: Adapter Vs Business Delegate

Whats this got to do with Struts?

Adapter is a very general pattern that converts the interface of one 
class inot a different interface.
Business Delegate is a pattern specific to enterprise-apps that aims to 
decouple the business services from the presentation tier.  A Business 
Delegate hides implementation details like JNDI lookups etc from the 
presentaton tier, it is therefore much more than an adapter (which is 
usually just a dumb object which delegates all incoming requests). 
However since a Business Delegate often transforms the interface of the 
business service into another interface which is more friendly to the 
presntation-tier it may be thought of as a type of adapter.

Gareth.

For more information on Business Delgate try, 
http://java.sun.com/blueprints/patterns/BusinessDelegate.html

For more information on Adapter buy Design patterns: Elements of 
Reusable Object-Oriented Software - Gamma, Helm, Johnson, Vlissides

Rajesh Khater wrote:
> Hi,
> 
> Whats the difference between Adapter and the Business Delegate pattern ?
> 
> Regards,
> Rajesh.
> 
> **************************Disclaimer************************************
> 
> Information contained in this E-MAIL being proprietary to Wipro Limited is 
> 'privileged' and 'confidential' and intended for use only by the individual
>  or entity to which it is addressed. You are notified that any use, copying 
> or dissemination of the information contained in the E-MAIL in any manner 
> whatsoever is strictly prohibited.
> 
> ***************************************************************************
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org