| Summary: | Remove accessor classes for application scoped classes | ||
|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Rüdiger Herrmann <ruediger.herrmann> |
| Component: | RWT | Assignee: | Project Inbox <rap-inbox> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | ||
| Version: | unspecified | ||
| Target Milestone: | 1.4 M7 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
| Bug Depends on: | |||
| Bug Blocks: | 341763 | ||
|
Description
Rüdiger Herrmann
I decided to do this work in chunks. Part 1 includes BrandingManager, EntryPointManager and LifeCycleFactory Part 2: ServiceManager, StartupPage, StartupPageConfigurer Changes are in CVS HEAD Part 3: SettingStoreManager, ConfigurationReader, ApplicationStore, PhaseListenerRegistry Changes are in CVS HEAD Part 4: ThemeAdapterUtil (now named ThemeAdapterManager), ThemeManagerInstance ThemeManagerInstance was renamed to ThemeManagerHolder. Also I left the ThemeManager#getInstance() and resetInstance() for now. The way to the actual ThemeManager is via another indirection (ThemeManagerHolder) and RWTFactory.getThemeManager().getInstance().doSomething(...) is too verbose and there are too many places where the ThemeManager is called. Part 5: TextSizeStorageRegistry Changes are in CVS HEAD Part 6: ImageFactory, FontDataFactory, ImageDataFactory, InternalImageFactory Changes are in CVS HEAD Part 7: DisplaysHolder, JSLibraryConcatenator, JSLibraryConcatenator, AdapterFactoryRegistry Changes are in CVS HEAD Part 8 (almost done): ResourceRegistry, ResourceFactory Part 9: ResourceManager (renamed to ResourceManagerProvider) The rest: ResourceManagerImpl The ResourceManagerImpl was removed from the ApplicationContext to avoid calling ResourceManagerImpl#getInstance() multiple times as it led to the ResourceManagerImpl instance being re-configured with each call. ResourceManagerImpl#getInstance() was renamed to createInstance() and creates and configures a new instance of ResourceManagerImpl. All clients of the resource manager now call the ResourceManagerProvider to obtain an instance. The ResourceManagerProvider together with the DefaultResourceManagerFactory now handles creating and accessing the single ResourceManagerImpl instance per ApplicationContext. Changes are in CVS HEAD |