public interface ScopeCache
Provide function to retrieve bean from scoped cache.
| Modifier and Type | Interface and Description |
|---|---|
static interface |
ScopeCache.RequestScope
Implementation of
ScopeCache.RequestScope shall provide access to bean instance stored in a request scope |
static interface |
ScopeCache.SessionScope
Implementation of
ScopeCache.RequestScope shall provide access to bean instance stored in a session scope |
static interface |
ScopeCache.SingletonScope
Implementation of
ScopeCache.SingletonScope provide access to bean instances stored in a singleton registry. |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
get(java.lang.Class<T> clazz)
Get a bean from the cache defined in the scope.
|
<T> void |
put(java.lang.Class<T> clazz,
T bean)
Put a bean instance into the cache associated with the class key specified.
|
<T> T get(java.lang.Class<T> clazz)
Get a bean from the cache defined in the scope.
T - generic type of the beanclazz - the key to retrieve the bean<T> void put(java.lang.Class<T> clazz,
T bean)
Put a bean instance into the cache associated with the class key specified.
T - generic type of the beanclazz - the key to store the bean instancebean - the bean instance to be storedCopyright © 2016–2017 OSGL (Open Source General Library). All rights reserved.