spring-framework / org.springframework.aop.scope / DefaultScopedObject

DefaultScopedObject

open class DefaultScopedObject : ScopedObject, Serializable

Default implementation of the ScopedObject interface.

Simply delegates the calls to the underlying ConfigurableBeanFactory (ConfigurableBeanFactory#getBean(String)/ ConfigurableBeanFactory#destroyScopedBean(String)).

Author
Juergen Hoeller

Since
2.0

See Also
org.springframework.beans.factory.BeanFactory#getBeanorg.springframework.beans.factory.config.ConfigurableBeanFactory#destroyScopedBean

Constructors

<init>

DefaultScopedObject(beanFactory: ConfigurableBeanFactory, targetBeanName: String)

Creates a new instance of the DefaultScopedObject class.

Functions

getTargetObject

open fun getTargetObject(): Any

removeFromScope

open fun removeFromScope(): Unit