|
Eclipse Platform Release 3.2 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A cache that is associated with a synchronization that allows clients to cache synchronization state related to their model for the duration of the operation. When the context is disposed, the cache will be disposed and any listeners notified.
This interface is not intended to be implemented by clients.
Method Summary | |
---|---|
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. |
Method Detail |
public void put(String name, Object value)
name
- the name that uniquely identifies the objectvalue
- the value to be cached.public Object get(String name)
name
- the name of the object
null
public void remove(String name)
name
- the namepublic void addCacheListener(ICacheListener listener)
listener
- the listener to addpublic void removeDisposeListener(ICacheListener listener)
listener
- the listener to remove
|
Eclipse Platform Release 3.2 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.