XMLPatterns.com

Home

Introduction

Patterns
Categorized
Alphabetical
Chronological

Books

Links

About
Offsite XML Design Pattern: Flyweight
This page reviews an XML design pattern that is located at an external website.

Abstract:

From the article "Flyweight is a structural pattern used to support a large number of small objects efficiently. Several instances of an object may share some properties: Flyweight factors these common properties into a single object, thus saving considerable space and time otherwise consumed by the creation and maintenance of duplicate instances."


Discussion:

This pattern by Fabio Arciniegas is presented in the January 2000 article Design Patterns in XML Applications on XML.com.

This pattern takes the original Gang of Four Flyweight pattern and places it into an XML processing context.



Related Patterns:

Although the Flyweight pattern on this site has the same name, they have different purposes. The pattern on this site is a structural pattern, it shows how to organize you XML document. The pattern discussed in the article is a processing pattern, it shows solutions to be used with code.


Link:

Flyweight Pattern (opens new browser window)

Visit our sponsors: (Interested in advertising on XMLPatterns.com?)