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(Class<T> clazz)
Get a bean from the cache defined in the scope
|
<T> void |
put(Class<T> clazz,
T bean)
Put a bean instance into the cache associated with the class key specified
|
<T> T get(Class<T> clazz)
Get a bean from the cache defined in the scope
clazz - the key to retrieve the beanT - generic type of the bean<T> void put(Class<T> clazz, T bean)
Put a bean instance into the cache associated with the class key specified
clazz - the key to store the bean instancebean - the bean instance to be storedT - generic type of the beanCopyright © 2017. All Rights Reserved.