Interface Scope
-
- All Known Implementing Classes:
AbstractScope
,ApplicationScope
,HttpSessionScope
,RequestScope
,SessionScope
public interface Scope
The Interface Scope.- Since:
- 2011. 3. 12.
-
-
Method Summary
All Methods Instance Methods Abstract Methods 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.
-
-
-
Method Detail
-
getScopeLock
java.util.concurrent.locks.ReadWriteLock getScopeLock()
Returns the scope lock.- Returns:
- the scope lock
-
getInstantiatedBean
InstantiatedBean getInstantiatedBean(BeanRule beanRule)
Returns an instance of the bean that matches the given bean rule.- Parameters:
beanRule
- the bean rule of the bean to retrieve- Returns:
- an instance of the bean
-
putInstantiatedBean
void putInstantiatedBean(BeanRule beanRule, InstantiatedBean instantiatedBean)
Saves an instantiated bean with the given bean rule into the scope.- Parameters:
beanRule
- the bean rule of the bean to saveinstantiatedBean
- an instance of the bean
-
destroy
void destroy()
Destroy all scoped beans in this scope.
-
-