A Factory class for creating resources.
This class creates resources and properties and things of that ilk.
These resources are not associated with a user-modifiable
model: doing getModel() on them will return null.
It is designed as a singleton. There are static convenience
methods on this class itself, so the easy way to create resource
is for example to do something like:
Resource r = ResourceFactory.createResource();
If a factory object is needed, then this can be obtained using
the getInstance method on the class. The factory
object used may be changed using the setInstance
method.
|