next up previous contents
Next: Summary of Design Patterns Up: Design Previous: Class PrototypeFileRepo   Contents


Class ResourceFileRepo

ResourceFileRepo adapts the idea of a ``prototype'' test data repository (section 3.3.1), where resources are used as data for temporary files.

Figure 22: Class ResourceFileRepo
\includegraphics[scale=.4]{resourcefilerepo.eps}

ResourceFileRepo requests resources from its ``outside caller'' and uses their content as ``prototype'' data to create a temporary file. The parent class, TempFileRepo, creates the temporary files as described in section 4.13.