| Summary: | Improve ResourceManager API | ||
|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Tim Buschtoens <tbuschto> |
| Component: | RWT | Assignee: | Project Inbox <rap-inbox> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | mknauer, rsternberg, tbuschto |
| Version: | 2.0 | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Tim Buschtoens
commit ed9f140763a184856b39be0500aa22a6e4054dc7 adds ResourceManagerImpl#registerOnce( String resource, ResourceLoader loader ). It's not yet in then ResourceManager interface. Now that we have Application-scoped singletons you could use something like
SingletonUtil.getUniqueInstance(Resources.class, RWT.getApplicationContext())
Resources would be an application scoped singleton that registers resources in its constructor.
|