Related Patterns and Technology
The Resource Decorator pattern is an instance of Decorator [Gamma 1995], which describes its foundation in generic terms. If you attach multiple decorators to the same resource, you form an instance of a Chain of Responsibility [Gamma 1995]. Resources are not only defined by commercial database platforms and middleware products. Data Accessor (9) forms a logical resource that your application or system manages. It follows that you can use a Resource Decorator to attach additional behavior to a Data Accessor. Resource Pool (117) incorporates a Resource Decorator to redefine what happens when an application closes a pooled resource. Resource Timer (137) uses a Resource Decorator to monitor a resource's activity.
 |