jyothi
Structural object patterns create composite objects by aggregating individual objects to build larger structures.
resides on the business tier, acts as an entry point into the business tier, and manages the workflow?
Mag
Originally posted by Dave Teare:
Perhaps my DBConnection is too large, or not proper OOD because it matches so many patterns. However, IMO, my DBConnection provides a clean, clear interface which accomplishes a focused set of tasks. Therefore, I don't mind documenting that this class uses multiple patterns.
Mag
jyothi
jyothi
Mag
jyothi
Proxy
Provide a surrogate or placeholder for another object to control access to it.
Rules of thumb
Adapter provides a different interface to its subject. Proxy provides the same interface. Decorator provides an enhanced interface.
Decorator and Proxy have different purposes but similar structures. Both describe how to provide a level of indirection to another object, and the implementations keep a reference to the object to which they forward requests.
Don't get me started about those stupid light bulbs. |