spring-framework / org.springframework.aop.scope / ScopedObject / removeFromScope

removeFromScope

abstract fun removeFromScope(): Unit

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).