SE450: The PROXY Pattern [30/55] Previous pageContentsNext page

Solution

  1. Define a proxy class that implements the subject interface type.
    The proxy holds a reference to the real subject, or otherwise knows how to locate it.
  2. The client uses a proxy object.
  3. Each proxy method invokes the same method on the real subject and provides the necessary modifications.

Previous pageContentsNext page