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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Dispose all resources stored into cache.abstract voiddisposeResource(Object type, Object key, Object resource) getCacheByType(Object type) getResource(Object type, Object key) Return resource type oftypestored into cache withkey.getResourceType(Object resource) voidregisterResource(Object type, Object key, Object resource) Register into cache the resourceresourcetype oftypewith keykey.voidunregisterResource(Object resource) voidunregisterResource(Object type, Object key) Unregister from cache the resourceresourcetype oftypewith keykey.
-
Constructor Details
-
AbstractResourcesRegistry
public AbstractResourcesRegistry()
-
-
Method Details
-
getResource
Description copied from interface:IResourcesRegistryReturn resource type oftypestored into cache withkey.- Specified by:
getResourcein interfaceIResourcesRegistry- Parameters:
type- Resource type like Font, Color, Cursor, Image
-
registerResource
Description copied from interface:IResourcesRegistryRegister into cache the resourceresourcetype oftypewith keykey.- Specified by:
registerResourcein interfaceIResourcesRegistry- Parameters:
type- Resource type like Font, Color, Cursor, Image
-
getCacheByType
-
unregisterResource
Description copied from interface:IResourcesRegistryUnregister from cache the resourceresourcetype oftypewith keykey.- Specified by:
unregisterResourcein interfaceIResourcesRegistry
-
unregisterResource
-
getResourceType
-
dispose
public void dispose()Description copied from interface:IResourcesRegistryDispose all resources stored into cache.- Specified by:
disposein interfaceIResourcesRegistry
-
disposeResource
-