7 Introducing Responsibility
THE RESPONSIBILITY OF an object is comparable to that of a representative in the Oozinoz call center. When you order fireworks from Oozinoz, the person you speak to is a representative—a proxy—for the company. He or she performs foreseeable tasks, usually by delegating them to other systems and people. Sometimes, the representative will delegate a request to a single, central authority who will mediate the situation or escalate problems up a chain of responsibility.
Like call center representatives, ordinary objects have the information and methods they need to operate independently. There are times, though, when you need to centralize responsibility, diverging from the normal independent operation of objects. Several ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access