AbstractScope
, ApplicationScope
, HttpSessionScope
, RequestScope
, SessionScope
public interface Scope
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.
|
java.util.concurrent.locks.ReadWriteLock getScopeLock()
InstantiatedBean getInstantiatedBean(BeanRule beanRule)
beanRule
- the bean rule of the bean to retrievevoid putInstantiatedBean(BeanRule beanRule, InstantiatedBean instantiatedBean)
beanRule
- the bean rule of the bean to saveinstantiatedBean
- an instance of the beanvoid destroy()
Copyright © 2008–2018 The Aspectran Project. All rights reserved.