ScopedObject interface.
Simply delegates the calls to the underlying
bean factory
(ConfigurableBeanFactory#getBean(String)/
ConfigurableBeanFactory#destroyScopedBean(String)).
org.springframework.beans.factory.BeanFactory#getBean , org.springframework.beans.factory.config.ConfigurableBeanFactory#destroyScopedBean
| Modifier and Type | Field and Description |
|---|---|
| private final ConfigurableBeanFactory | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public | DefaultScopedObject(ConfigurableBeanFactory
the beanFactory, String ConfigurableBeanFactory that holds the scoped target objectthe name of the target bean targetBeanName)Creates a new instance of the |
| Modifier and Type | Method and Description |
|---|---|
| public Object | getTargetObject()
Implements org. |
| public void | removeFromScope()
Implements org. |
| beanFactory | back to summary |
|---|---|
| private final ConfigurableBeanFactory beanFactory | |
| targetBeanName | back to summary |
|---|---|
| private final String targetBeanName | |
| DefaultScopedObject | back to summary |
|---|---|
| public DefaultScopedObject(ConfigurableBeanFactory beanFactory, String targetBeanName) Creates a new instance of the
| |
| getTargetObject | back to summary |
|---|---|
| public Object getTargetObject() Implements org. Doc from org. Return the current target object behind this scoped object proxy, in its raw form (as stored in the target scope). The raw target object can for example be passed to persistence providers which would not be able to handle the scoped proxy object. | |
| removeFromScope | back to summary |
|---|---|
| public void removeFromScope() Implements org. Doc from org. Remove this object from its target scope, for example from the backing session. Note that no further calls may be made to the scoped object afterwards (at least within the current thread, that is, with the exact same target object in the target scope).
| |