Project

General

Profile

Actions

Bug #4104

open

Need resource manager to handle objects in the resources directories

Added by Chad Berkley over 15 years ago. Updated about 15 years ago.

Status:
New
Priority:
Normal
Assignee:
Category:
core
Target version:
Start date:
05/22/2009
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
4104

Description

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?

Actions

Also available in: Atom PDF