public interface ICache
This interface is not intended to be implemented by clients.
| 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 |
removeDisposeListener(ICacheListener listener)
Remove the listener.
|
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 objectnullvoid remove(String name)
name - the namevoid addCacheListener(ICacheListener listener)
listener - the listener to addvoid removeDisposeListener(ICacheListener listener)
listener - the listener to removeGuidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.