
Contents
Primary Presentation <<app>Petstore
Diagram 1. High-level View
Diagram 2. A Detailed View
Element Catalog
- components:Package. Refinement view available for this element.
waf:Package. Refinement view available for this element.
''under the namespace '''tools::populate '''''
- AccountPopulator: Anonymously extends an XMLFilter to create and fill tables with the information that it gets from an XML stream (XMLReader).
AddressPopulator: Anonymously extends an XMLFilter to create and fill tables with the information that it gets from an XML stream (XMLReader).
CategoryDetailsPopulator: Anonymously extends an XMLFilter to create and fill tables with the information that it gets from an XML stream (XMLReader).
CategoryPopulator: Anonymously extends an XMLFilter to create and fill tables with the information that it gets from an XML stream (XMLReader).
ContactInfoPopulator: Anonymously extends an XMLFilter to create and fill tables with the information that it gets from an XML stream (XMLReader).
CreditCardPopulator: Anonymously extends an XMLFilter to create and fill tables with the information that it gets from an XML stream (XMLReader).
ItemDetailsPopulator: Anonymously extends an XMLFilter to create and fill tables with the information that it gets from an XML stream (XMLReader).
ItemPopulator: Anonymously extends an XMLFilter to create and fill tables with the information that it gets from an XML stream (XMLReader).
ProductDetailsPopulator: Anonymously extends an XMLFilter to create and fill tables with the information that it gets from an XML stream (XMLReader).
ProductPopulator: Anonymously extends an XMLFilter to create and fill tables with the information that it gets from an XML stream (XMLReader).
ProfilePopulator: Anonymously extends an XMLFilter to create and fill tables with the information that it gets from an XML stream (XMLReader).
UserPopulator: Anonymously extends an XMLFilter to create and fill tables with the information that it gets from an XML stream (XMLReader).
XMLDBHandler: Extends org.xml.sax.helpers.XMLFilter. Sits between an XMLReader and the client application's event handlers, it modifies the configuration requests as they pass through.
Variability Guide
The tools::populate package is useful for testing environments. In production environments this package should be deleted or updated (synchronizing real data, etc.)
Other Information
The tools::populate package contains 12 Populator classes. All of them have a very similar behavior and have the same class method names, but strangely enough there is not a common interface that all classes implement. The same code is repeated over and over, the use of inheritance would be the natural way to go, but apparently the writers of the code did not consider this possibility before jumping to code. This code is difficult to maintain and error-prone.