spring-framework / org.springframework.aop.framework / AbstractSingletonProxyFactoryBean / setTarget

setTarget

open fun setTarget(target: Any): Unit

Set the target object, that is, the bean to be wrapped with a transactional proxy.

The target may be any object, in which case a SingletonTargetSource will be created. If it is a TargetSource, no wrapper TargetSource is created: This enables the use of a pooling or prototype TargetSource etc.

See Also
org.springframework.aop.TargetSourceorg.springframework.aop.target.SingletonTargetSourceorg.springframework.aop.target.LazyInitTargetSourceorg.springframework.aop.target.PrototypeTargetSourceorg.springframework.aop.target.CommonsPool2TargetSource