public class SimpleSingletonScope extends Object implements ScopeCache.SingletonScope
ScopeCache.RequestScope, ScopeCache.SessionScope, ScopeCache.SingletonScope| Constructor and Description |
|---|
SimpleSingletonScope() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
get(BeanSpec target)
Get a bean from the cache defined in the scope.
|
<T> void |
put(BeanSpec target,
T bean)
Put a bean instance into the cache associated with the class key specified.
|
public <T> T get(BeanSpec target)
ScopeCacheGet a bean from the cache defined in the scope.
get in interface ScopeCacheT - generic type of the beantarget - the key to retrieve the beanpublic <T> void put(BeanSpec target, T bean)
ScopeCachePut a bean instance into the cache associated with the class key specified.
put in interface ScopeCacheT - generic type of the beantarget - the key to store the bean instancebean - the bean instance to be storedCopyright © 2016–2018 OSGL (Open Source General Library). All rights reserved.