Differences between Proxy and Decorator Pattern
The real difference is not ownership (composition versus aggregation), but rather type-information. A Decorator is always passed its delegatee. A Proxy might create it himself, or he might have it injected. But a Proxy always knows the (more) specific type of the delegatee. In other words, the Proxy and its delegatee will have the same … Read more