|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.xenonsoft.bridgetown.soa.impl.ContextCacheContainerImpl
Context cache container that manages a collection of context cache instances
| Field Summary | |
protected java.util.Map |
contextMap
A map collection that stores ContextCacheImpl elements |
| Constructor Summary | |
ContextCacheContainerImpl()
Default constructor |
|
| 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 |
java.lang.String |
toString()
Human debuggable output Implements / overrides toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected java.util.Map contextMap
ContextCacheImpl elements
| Constructor Detail |
public ContextCacheContainerImpl()
| Method Detail |
public java.lang.Object getLocalBean(ContextConfig contextConfig,
java.lang.String serviceId)
getLocalBean in interface IContextCacheContainercontextConfig - 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)
putLocalBean in interface IContextCacheContainercontextConfig - the context configurationserviceId - the service bean namebean - the service bean instance to storepublic int size()
size in interface IContextCacheContainerpublic boolean contains(ContextConfig context)
contains in interface IContextCacheContainercontext - the context configuration
true if the bean is returnedpublic void clear()
clear in interface IContextCacheContainerpublic IContextCache removeContextCache(ContextConfig contextConfig)
removeContextCache in interface IContextCacheContainernullpublic IContextCache[] getContextCacheList()
getContextCacheList in interface IContextCacheContainerpublic java.lang.String toString()
Object.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||