public interface ScopedFactoryBeanHandler
ScopedFactoryBeans of the corresponding scope.| Modifier and Type | Method and Description |
|---|---|
<T> T |
getBean(java.lang.String name,
ScopedFactoryBean<T> factoryBean)
Returns the bean defined by the given
ScopedFactoryBean. |
java.lang.String |
getName()
Returns the name of the scope.
|
boolean |
isActive()
Checks whether the scope is active, i.e.
|
java.lang.String getName()
boolean isActive()
true or false whether the scope is active<T> T getBean(java.lang.String name,
ScopedFactoryBean<T> factoryBean)
ScopedFactoryBean.
The bean can be an existing one already lining in this scope, if so. Otherwise a new bean is created by the
factoryBean.
Note: This method may only be called, when the scope is active.
T - the type of the beanname - the name of the bean, which is equal to the name of the factory beanfactoryBean - the factory bean to produce the desired bean