next up previous contents
Next: Class FileRepo Up: Design Previous: Class PackageRepo   Contents

Class SubpackageRepo

This is a concrete subclass of Repo that is based on PackageRepo. Its functionality is similar to that of PackageRepo, except this class gets its resources from a subpackage relative to its ``outside caller.''

This class overrides method getResource(name) and prepends the specified package path to the name of the resource before requesting that resource from the ``outside caller's'' class.

Figure 14: Class SubpackageRepo
\includegraphics[scale=.4]{subpackagerepo.eps}