This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Journey To Enterprise Agility and have Daryl Kulak & Hong Li on-line!
See this thread for details.
Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.
  • 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:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!