File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes What is the design pattern of transition delegates? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "What is the design pattern of transition delegates? " Watch "What is the design pattern of transition delegates? " New topic

What is the design pattern of transition delegates?

shell Johnson
Ranch Hand

Joined: Jul 17, 2002
Posts: 37
I think the code of transition delegates in PetStore is very cool. Can anyone tell me what design pattern is this?
Byron Estes
Ranch Hand

Joined: Feb 21, 2002
Posts: 313
Sounds bit like the Gof4 Behavioral Pattern - command.

Byron Estes<br />Sun Certified Enterprise Architect<br />Senior Consulant<br />Blackwell Consulting Services<br />Chicago, IL<br /><a href="" target="_blank" rel="nofollow"></a>
Timber Lee
Ranch Hand

Joined: Oct 14, 2002
Posts: 157
what is different between delegates and proxy?

Roman Rytov
Ranch Hand

Joined: Jun 04, 2001
Posts: 75
I'd say the both have the same idea - to create an intermediate (and single) point of access to the value services. At this point additional operations maybe carried out. GoF Proxy doesn't specify who is Subject and who is Proxy but BusinessDelegate operates mostly between Business tier (SessionBeans) and fron-end (Web and others). BusinessDelegate maybe implemented either by Proxy or by Adapter strategies. (btw, there's no big difference between Proxy and Adapter sometimes)

It is sorta covered in the JavaRanch Style Guide.
subject: What is the design pattern of transition delegates?
Similar Threads
Interface as a parameter
what to do about these exceptions
What are delegates
About Master Slave Design Pattern
How to read "Proposal for new VS.Net and related issues forum "