Win a copy of Serverless Applications with Node.js this week in the NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Stephan van Hulst
  • Ron McLeod
  • Tim Moores
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Vijitha Kumara

What Design pattern is this?  RSS feed

 
Ranch Hand
Posts: 145
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi guys,

From a java class(Action class) we are accessing the business delegate. The code is written in such a way that we are able to access/use only the Business Delegate interfaces and the actual Business Delegate implimentation is hidden behind the Business Delegate interfaces. The main objective of the Business Delegate implimentation is to get a remote object(EJB object).

Any idea, what Design pattern does the above statement represents?


thanks
jtc

[ November 25, 2006: Message edited by: Jhumri Talaiyah Charsobees ]
[ November 26, 2006: Message edited by: Jhumri Talaiyah Charsobees ]
 
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jhumri,

If your abstraction is separeted from your implementation in a way that the two can vary independently, than that's the Bridge pattern.
 
Henrique Ordine
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry.

...then that's the Bridge pattern.
 
jay roy
Ranch Hand
Posts: 145
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for the response.
so i was thinking if there is any way bridge pattern and business delegate patern are related to each other

thanks
J
 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are using Business Delegatepattern! Bridge pattern is not used for implementing interfaces. Just look at the definition of Bridge, it clearly says, when abstraction can change independent of implementation. Can we change the interface here and expect the implementation to work or vice versa?

Splitting abstraction and implementation is just a good OOD practice. Not a pattern. However certain patterns like Strategy etc uses this practice.

Jeevan.
 
Henrique Ordine
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jhumri,

I don't think so, the two should be implemented to solve different problems. What I'm saying is, if your implementing you business delegate in a way that the interface and the implementation can vary without affecting one another, then you're using the Bridge pattern to implement your Business Delegate. But the Business Delegate is suppose to serve a very different purpose.
 
jay roy
Ranch Hand
Posts: 145
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
very well said henrique,

thanks guys for the responces
Greatly appreciate it
J
 
You can't have everything. Where would you put it?
global solutions you can do in your home or backyard
https://coderanch.com/t/708587/global-solutions-home-backyard
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!