|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- The type of service stored and returned from this cachepublic interface SingleCache<T>
This cache can be used in some circumstances when there can be only one of a service. This is useful and can avoid an expensive lookup in certain context implementations
Method Summary | |
---|---|
T |
getCache()
This can be used for scopes that will only every be created once. |
boolean |
isCacheSet()
Returns true if this cache has been set |
void |
releaseCache()
Removes the cached value and makes it such that this cache has not been set |
void |
setCache(T cacheMe)
Sets the value into the cache |
Method Detail |
---|
T getCache()
boolean isCacheSet()
void setCache(T cacheMe)
cacheMe
- A single value that can be cached in this
active descriptorvoid releaseCache()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |