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 TypeMethodDescriptionvoid
dispose()
Dispose all resources stored into cache.getResource
(Object type, Object key) Return resource type oftype
stored into cache withkey
.void
registerResource
(Object type, Object key, Object resource) Register into cache the resourceresource
type oftype
with keykey
.void
unregisterResource
(Object type, Object key) Unregister from cache the resourceresource
type oftype
with keykey
.
-
Method Details
-
getResource
Return resource type oftype
stored into cache withkey
.- Parameters:
type
- Resource type like Font, Color, Cursor, Image
-
registerResource
Register into cache the resourceresource
type oftype
with keykey
.- Parameters:
type
- Resource type like Font, Color, Cursor, Image
-
unregisterResource
Unregister from cache the resourceresource
type oftype
with keykey
. -
dispose
void dispose()Dispose all resources stored into cache.
-