Class AbstractResourcesRegistry
java.lang.Object
org.eclipse.e4.ui.css.core.resources.AbstractResourcesRegistry
- All Implemented Interfaces:
IResourcesRegistry
- Direct Known Subclasses:
SWTResourcesRegistry
Abstract class resources registry which implement basic cache with Map.
- Version:
- 1.0.0
- Author:
- Angelo ZERR
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
Dispose all resources stored into cache.abstract void
disposeResource
(Object type, Object key, Object resource) getCacheByType
(Object type) getResource
(Object type, Object key) Return resource type oftype
stored into cache withkey
.getResourceType
(Object resource) void
registerResource
(Object type, Object key, Object resource) Register into cache the resourceresource
type oftype
with keykey
.void
unregisterResource
(Object resource) void
unregisterResource
(Object type, Object key) Unregister from cache the resourceresource
type oftype
with keykey
.
-
Constructor Details
-
AbstractResourcesRegistry
public AbstractResourcesRegistry()
-
-
Method Details
-
getResource
Description copied from interface:IResourcesRegistry
Return resource type oftype
stored into cache withkey
.- Specified by:
getResource
in interfaceIResourcesRegistry
- Parameters:
type
- Resource type like Font, Color, Cursor, Image
-
registerResource
Description copied from interface:IResourcesRegistry
Register into cache the resourceresource
type oftype
with keykey
.- Specified by:
registerResource
in interfaceIResourcesRegistry
- Parameters:
type
- Resource type like Font, Color, Cursor, Image
-
getCacheByType
-
unregisterResource
Description copied from interface:IResourcesRegistry
Unregister from cache the resourceresource
type oftype
with keykey
.- Specified by:
unregisterResource
in interfaceIResourcesRegistry
-
unregisterResource
-
getResourceType
-
dispose
public void dispose()Description copied from interface:IResourcesRegistry
Dispose all resources stored into cache.- Specified by:
dispose
in interfaceIResourcesRegistry
-
disposeResource
-