Package org.springframework.aop.scope
Class DefaultScopedObject
java.lang.Object
org.springframework.aop.scope.DefaultScopedObject
- All Implemented Interfaces:
- Serializable,- RawTargetAccess,- ScopedObject
Default implementation of the 
ScopedObject interface.
 Simply delegates the calls to the underlying
 bean factory
 (BeanFactory.getBean(String)/
 ConfigurableBeanFactory.destroyScopedBean(String)).
- Since:
- 2.0
- Author:
- Juergen Hoeller
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionDefaultScopedObject(ConfigurableBeanFactory beanFactory, String targetBeanName) Creates a new instance of theDefaultScopedObjectclass.
- 
Method SummaryModifier and TypeMethodDescriptionReturn the current target object behind this scoped object proxy, in its raw form (as stored in the target scope).voidRemove this object from its target scope, for example from the backing session.
- 
Constructor Details- 
DefaultScopedObjectCreates a new instance of theDefaultScopedObjectclass.- Parameters:
- beanFactory- the- ConfigurableBeanFactorythat holds the scoped target object
- targetBeanName- the name of the target bean
 
 
- 
- 
Method Details- 
getTargetObjectDescription copied from interface:ScopedObjectReturn 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. - Specified by:
- getTargetObjectin interface- ScopedObject
- Returns:
- the current target object behind this scoped object proxy
 
- 
removeFromScopepublic void removeFromScope()Description copied from interface:ScopedObjectRemove 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). - Specified by:
- removeFromScopein interface- ScopedObject
 
 
-