| Modifier and Type | Method and Description |
|---|---|
| public T | Returns: A value cached with this ActiveDescriptorThis can be used for scopes that will only every be created once. |
| public boolean | Returns: true if there is a currently cached value, false otherwiseReturns true if this cache has been set |
| public void | |
| public void | setCache(T
A single value that can be cached in this
active descriptor cacheMe)Sets the value into the cache |
| getCache | back to summary |
|---|---|
| public T getCache() This can be used for scopes that will only every be created once. The returned value must have been set previously with setCache. If this is called when isCacheSet is false will result in a RuntimeException
| |
| isCacheSet | back to summary |
|---|---|
| public boolean isCacheSet() Returns true if this cache has been set
| |
| releaseCache | back to summary |
|---|---|
| public void releaseCache() Removes the cached value and makes it such that this cache has not been set | |
| setCache | back to summary |
|---|---|
| public void setCache(T cacheMe) Sets the value into the cache
| |