|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
A interface contract for the context cache instance container, which manages a collection of context caches.
| Method Summary | |
void |
clear()
Clear the cache container of all instance caches |
boolean |
contains(ContextConfig context)
Returns a boolean if the context configuration is stored in the cache container |
IContextCache[] |
getContextCacheList()
Retrieves a primitive array of instance element elements inside the cache container |
java.lang.Object |
getLocalBean(ContextConfig contextConfig,
java.lang.String serviceId)
Retrieves the service bean stored in the context instance cache by name |
void |
putLocalBean(ContextConfig contextConfig,
java.lang.String serviceId,
java.lang.Object bean)
Stores the service bean stored in the context instance cache by name |
IContextCache |
removeContextCache(ContextConfig contextConfig)
Removes the cache instance from the container by its context configuration |
int |
size()
Returns the current size of the cache container |
| Method Detail |
public java.lang.Object getLocalBean(ContextConfig contextConfig,
java.lang.String serviceId)
contextConfig - the context configurationserviceId - the service bean name
null if it is not managed
public void putLocalBean(ContextConfig contextConfig,
java.lang.String serviceId,
java.lang.Object bean)
contextConfig - the context configurationserviceId - the service bean namebean - the service bean instance to storepublic int size()
public boolean contains(ContextConfig context)
context - the context configuration
true if the bean is returnedpublic void clear()
public IContextCache removeContextCache(ContextConfig contextConfig)
nullpublic IContextCache[] getContextCacheList()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||