public class SimpleSingletonScope extends Object implements ScopeCache.SingletonScope
ScopeCache.RequestScope, ScopeCache.SessionScope, ScopeCache.SingletonScope| Constructor and Description |
|---|
SimpleSingletonScope() |
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–2019 OSGL (Open Source General Library). All rights reserved.