eu.esdihumboldt.hale.ui.util
Class ResourceManager
java.lang.Object
eu.esdihumboldt.hale.ui.util.ResourceManager
public class ResourceManager
- extends Object
Resource manager that holds resources and offers the possibility to dispose
them. Not thread safe as designed for use in the display thread.
- Author:
- Simon Templer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceManager
public ResourceManager()
getInstance
public <T> T getInstance(ResourceManager.Resource<T> resource)
throws Exception
- Get a resource instance. The same instance is returned for equal resource
definitions.
- Parameters:
resource
- the resource definition
- Returns:
- an existing instance of the resource or if none was created yet,
a new instance
- Throws:
Exception
- if an error occurs creating a new resource instance
dispose
public void dispose()
- Dispose all resource instances.
Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d