Class AbstractScope
- java.lang.Object
-
- com.aspectran.core.component.bean.scope.AbstractScope
-
- All Implemented Interfaces:
Scope
- Direct Known Subclasses:
ApplicationScope,RequestScope,SessionScope
public class AbstractScope extends java.lang.Object implements Scope
The Class AbstractScope.- Since:
- 2011. 3. 12.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()Destroy all scoped beans in this scope.BeanInstancegetBeanInstance(BeanRule beanRule)Returns an instance of the bean that matches the given bean rule.java.util.concurrent.locks.ReadWriteLockgetScopeLock()Returns the scope lock.voidputBeanInstance(BeanRule beanRule, BeanInstance beanInstance)Saves an instantiated bean with the given bean rule into the scope.
-
-
-
Method Detail
-
getScopeLock
public java.util.concurrent.locks.ReadWriteLock getScopeLock()
Description copied from interface:ScopeReturns the scope lock.- Specified by:
getScopeLockin interfaceScope- Returns:
- the scope lock
-
getBeanInstance
public BeanInstance getBeanInstance(BeanRule beanRule)
Description copied from interface:ScopeReturns an instance of the bean that matches the given bean rule.- Specified by:
getBeanInstancein interfaceScope- Parameters:
beanRule- the bean rule of the bean to retrieve- Returns:
- an instance of the bean
-
putBeanInstance
public void putBeanInstance(BeanRule beanRule, BeanInstance beanInstance)
Description copied from interface:ScopeSaves an instantiated bean with the given bean rule into the scope.- Specified by:
putBeanInstancein interfaceScope- Parameters:
beanRule- the bean rule of the bean to savebeanInstance- an instance of the bean
-
-