Interface IResourcesRegistry
- All Known Implementing Classes:
AbstractResourcesRegistry,SWTResourcesRegistry
public interface IResourcesRegistry
Interface Resources Registry to cache Resources and dispose it if need.
- Version:
- 1.0.0
- Author:
- Angelo ZERR
-
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Dispose all resources stored into cache.getResource(Object type, Object key) Return resource type oftypestored into cache withkey.voidregisterResource(Object type, Object key, Object resource) Register into cache the resourceresourcetype oftypewith keykey.voidunregisterResource(Object type, Object key) Unregister from cache the resourceresourcetype oftypewith keykey.
-
Method Details
-
getResource
Return resource type oftypestored into cache withkey.- Parameters:
type- Resource type like Font, Color, Cursor, Image
-
registerResource
Register into cache the resourceresourcetype oftypewith keykey.- Parameters:
type- Resource type like Font, Color, Cursor, Image
-
unregisterResource
Unregister from cache the resourceresourcetype oftypewith keykey. -
dispose
void dispose()Dispose all resources stored into cache.
-