Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

decoator or proxy partern?

 
Robin Zhang
Ranch Hand
Posts: 139
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
EJBObject uses decoator or proxy parttern for EJB instance?
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A decorator adds functionality to an already existing Object without adding it directly into the class code.
A Proxy is kind of like a middle man, it passes calls through itself to the actual object it is representing. It can also filter some of the calls. Think of it like a real Proxy Server. A Proxy server receives calls from the outside, looks at the call to make sure it is valid, then passes it to the actual object.
Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic