public interface ICache
Modifier and Type | Method and Description |
---|---|
void |
addCacheListener(ICacheListener listener)
Add a listener to the cache that will receive notification
when the cache is disposed.
|
Object |
get(String name)
Retrieve an object that has been cached with the context
|
void |
put(String name,
Object value)
Cache the given object with this context.
|
void |
remove(String name)
Remove the named object from the cache
|
void |
removeCacheListener(ICacheListener listener)
Remove the listener.
|
void |
removeDisposeListener(ICacheListener listener)
Deprecated.
|
void put(String name, Object value)
name
- the name that uniquely identifies the objectvalue
- the value to be cached.Object get(String name)
name
- the name of the objectnull
void remove(String name)
name
- the namevoid addCacheListener(ICacheListener listener)
listener
- the listener to addvoid removeCacheListener(ICacheListener listener)
listener
- the listener to removevoid removeDisposeListener(ICacheListener listener)
removeCacheListener(ICacheListener)
listener
- the listener to remove
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.