public class AbstractScope extends Object implements Scope
Modifier and Type | Field and Description |
---|---|
protected Map<BeanRule,InstantiatedBean> |
scopedBeanMap |
Constructor and Description |
---|
AbstractScope(ScopeType scopeType) |
Modifier and Type | Method and 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.
|
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 Map<BeanRule,InstantiatedBean> scopedBeanMap
public AbstractScope(ScopeType scopeType)
public ReadWriteLock getScopeLock()
Scope
getScopeLock
in interface Scope
public InstantiatedBean getInstantiatedBean(BeanRule beanRule)
Scope
getInstantiatedBean
in interface Scope
beanRule
- the bean rule of the bean to retrievepublic void putInstantiatedBean(BeanRule beanRule, InstantiatedBean instantiatedBean)
Scope
putInstantiatedBean
in interface Scope
beanRule
- the bean rule of the bean to saveinstantiatedBean
- an instance of the beanCopyright © 2008–2017 Aspectran.com. All rights reserved.