ScopeApplicationScope, RequestScope, SessionScopepublic class AbstractScope extends java.lang.Object implements Scope
| Modifier and Type | Field | Description |
|---|---|---|
protected java.util.Map<BeanRule,InstantiatedBean> |
scopedBeanMap |
| Constructor | Description |
|---|---|
AbstractScope(ScopeType scopeType) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
destroy() |
Destroy all scoped beans in this scope.
|
InstantiatedBean |
getInstantiatedBean(BeanRule beanRule) |
Returns an instance of the bean that matches the given bean rule.
|
java.util.concurrent.locks.ReadWriteLock |
getScopeLock() |
Returns the scope lock.
|
void |
putInstantiatedBean(BeanRule beanRule,
InstantiatedBean instantiatedBean) |
Saves an instantiated bean with the given bean rule into the scope.
|
protected final java.util.Map<BeanRule,InstantiatedBean> scopedBeanMap
public AbstractScope(ScopeType scopeType)
public java.util.concurrent.locks.ReadWriteLock getScopeLock()
ScopegetScopeLock in interface Scopepublic InstantiatedBean getInstantiatedBean(BeanRule beanRule)
ScopegetInstantiatedBean in interface ScopebeanRule - the bean rule of the bean to retrievepublic void putInstantiatedBean(BeanRule beanRule, InstantiatedBean instantiatedBean)
ScopeputInstantiatedBean in interface ScopebeanRule - the bean rule of the bean to saveinstantiatedBean - an instance of the beanCopyright © 2008–2018 The Aspectran Project. All rights reserved.