[kepler-dev] [Bug 4104] New: - Need resource manager to handle objects in the resources directories

bugzilla-daemon at ecoinformatics.org bugzilla-daemon at ecoinformatics.org
Fri May 22 12:20:19 PDT 2009


http://bugzilla.ecoinformatics.org/show_bug.cgi?id=4104

           Summary: Need resource manager to handle objects in the resources
                    directories
           Product: Kepler
           Version: 1.x dev
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: core
        AssignedTo: berkley at nceas.ucsb.edu
        ReportedBy: berkley at nceas.ucsb.edu
         QAContact: kepler-dev at kepler-project.org


This class should have static methods for accessing items in the modules'
resources directory.  This would allow resources to be accessed from a
centralized place based on module name and path, but it would keep developers
from having to hard code file paths into the java code.  An example method
might be:

File f = ResourceManager.getResource("common", "images/kepler-about.png");

Which would read the kepler/modules/common/resources/images/kepler-about.png
file.

We could also have resource-type specific calls, like 

Image i = ResourceManager.getImage("common", "images/kepler-about.png");


Comments?  Other ideas?


More information about the Kepler-dev mailing list