public class PrototypeScopedFactoryBeanHandler extends java.lang.Object implements ScopedFactoryBeanHandler
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PROTOTYPE_SCOPE |
| Constructor and Description |
|---|
PrototypeScopedFactoryBeanHandler() |
| 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.
|
public static final java.lang.String PROTOTYPE_SCOPE
public java.lang.String getName()
ScopedFactoryBeanHandlergetName in interface ScopedFactoryBeanHandlerpublic boolean isActive()
ScopedFactoryBeanHandlerisActive in interface ScopedFactoryBeanHandlertrue or false whether the scope is activepublic <T> T getBean(java.lang.String name,
ScopedFactoryBean<T> factoryBean)
ScopedFactoryBeanHandlerScopedFactoryBean.
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.
getBean in interface ScopedFactoryBeanHandlerT - 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