|
|
||||||||||||||||||||||||
|
|||||||||||||||||||||||||
Resources Management |
|||||||||||||||||||||||||
The API cross references give an immediate access to relevant interfaces and classes. |
|||||||||||||||||||||||||
Resource FactoryA resource factory declares an interface for creating each resource (font, color, style, graphical context). A concrete resource factory such for AWT implements the resources in a specific context. Here is the reason to deal with resources through abstract factory. |
|||||||||||||||||||||||||
FontHere is the reason for reifiying family and style. |
|||||||||||||||||||||||||
ColorHere is the reason for reifiying basic colors. |
|||||||||||||||||||||||||
StyleA style is the conjunction of font, foreground and background colors. |
|||||||||||||||||||||||||
Defered ResourcesA defered resource allows reference to resources before we want or know how to allocate concrete one like fonts, colors or styles. As soon as the defered resource is loaded, there is no subsequent cost in speed or memory.A resource owner provides indirect access to the resource factory and write accessor to assign the concrete resource. |
|||||||||||||||||||||||||
A defered resource acts like a kind of lazy proxy. The allocation process occurs the first time the concrete resource is needed. Here is the reason we do not use proxy. | |||||||||||||||||||||||||
International ResourcesWe use the standard java.util.ResourceBundle to manage locale-specific objects, like messages. |
|||||||||||||||||||||||||
API Cross References
| |||||||||||||||||||||||||
|
|||||||||||||||||||||||||
|
|||||||||||||||||||||||||
|
|||||||||||||||||||||||||
|